Page Summary
-
PayClient.SavePassesResult provides possible result codes for
onActivityResult()when saving passes usingPayClient.savePassesorPayClient.savePassesJwt. -
In addition to standard
RESULT_OKandRESULT_CANCELED, result codes includeAPI_UNAVAILABLE,INTERNAL_ERROR, andSAVE_ERROR. -
API_UNAVAILABLEindicates the save passes API is not accessible, suggesting a check of availability status before calling. -
INTERNAL_ERRORsignifies a temporary issue with the API call, recommending retrying the call. -
SAVE_ERRORindicates a failure in the pass-saving process itself, suggesting checkingEXTRA_API_ERROR_MESSAGEfor debugging.
Possible result codes passed back in onActivityResult()
when calling PayClient.savePasses(String, Activity, int)
or PayClient.savePassesJwt(String, Activity, int)
. These are in addition to Activity.RESULT_OK
and Activity.RESULT_CANCELED
.
Constant Summary
| int | API_UNAVAILABLE | The PayClient.savePasses(String, Activity, int)
or PayClient.savePassesJwt(String, Activity, int)
API is unavailable. |
| int | INTERNAL_ERROR | Indicates that an internal error occurred while calling the API. |
| int | SAVE_ERROR | An error occurred while saving the passes. |
Inherited Method Summary
Constants
public static final int API_UNAVAILABLE
The PayClient.savePasses(String, Activity, int)
or PayClient.savePassesJwt(String, Activity, int)
API is unavailable. Use PayClient.getPayApiAvailabilityStatus(int)
before calling the API.
public static final int INTERNAL_ERROR
Indicates that an internal error occurred while calling the API. Retry the API call. If the error persists assume that the API is not available.
public static final int SAVE_ERROR
An error occurred while saving the passes. Check EXTRA_API_ERROR_MESSAGE
to debug the issue.

