OnPurchaseFailed

This reference document summarises responses associated with the OnPurchaseFailed method of the NowGGPaymentsSdkManager class.

Definition

public void OnPurchaseFailed(int errorCode, string errorMessage)
 {
    Debug.Log($"OnPurchaseFailed: errorCode: {errorCode} and msg: {errorMessage}");
 }

Response Codes

The table below showcases the type, response code, and response description.

 

Type Code Description
int 0 Indicates Successful Operation
int 1 Indicates that the process was cancelled by the user or they pressed the back button
int 2 Indicates a network issue
int 3 This indicates that the Payment API version is not supported for the type requested
int 4 Indicates that the requested item is not available for purchase
int 5 Indicates multiple scenarios, mainly: i) invalid arguments provided to the API. ii) Setup issues within now.gg Payment Service. iii) Permission issues
int 6 Indicates a fatal error during execution
int 7 Indicates that the item is already owned, purchase failure
int 8 Indicates an issue where the item is not owned and hence cannot be consumed
int -1 The service is not connected at the moment. Possible reasons could be: i) Service maintenance ii) Application in a transient state.
int -2 This indicates that the requested feature is not supported by now.gg Billing Service on that specific device
int -3 This indicates that maximum timeouts have occurred, and the billing service hasn’t responded
×
Text copied to clipboard
Link copied to clipbord
Questions? Please reach out to us at dev-support@now.gg