PayClient.SavePassesResult

  • PayClient.SavePassesResult provides possible result codes for onActivityResult() when saving passes using PayClient.savePasses or PayClient.savePassesJwt.

  • In addition to standard RESULT_OK and RESULT_CANCELED, result codes include API_UNAVAILABLE, INTERNAL_ERROR, and SAVE_ERROR.

  • API_UNAVAILABLE indicates the save passes API is not accessible, suggesting a check of availability status before calling.

  • INTERNAL_ERROR signifies a temporary issue with the API call, recommending retrying the call.

  • SAVE_ERROR indicates a failure in the pass-saving process itself, suggesting checking EXTRA_API_ERROR_MESSAGE for debugging.

public static abstract @interface PayClient.SavePassesResult implements Annotation

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

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.

Constant Value: 3

public static final int SAVE_ERROR

An error occurred while saving the passes. Check EXTRA_API_ERROR_MESSAGE to debug the issue.

Constant Value: 2