PayClient.SavePassesResult
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003ePayClient.SavePassesResult\u003c/code\u003e defines result codes for \u003ccode\u003ePayClient.savePasses\u003c/code\u003e and \u003ccode\u003ePayClient.savePassesJwt\u003c/code\u003e operations, returned in \u003ccode\u003eonActivityResult()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese result codes supplement the standard \u003ccode\u003eActivity.RESULT_OK\u003c/code\u003e and \u003ccode\u003eActivity.RESULT_CANCELED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003ePossible result codes include \u003ccode\u003eAPI_UNAVAILABLE\u003c/code\u003e, \u003ccode\u003eINTERNAL_ERROR\u003c/code\u003e, and \u003ccode\u003eSAVE_ERROR\u003c/code\u003e, indicating specific issues encountered during the save operation.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should use these codes to handle different outcomes and provide appropriate user feedback.\u003c/p\u003e\n"]]],[],null,["# PayClient.SavePassesResult\n\npublic static abstract @interface **PayClient.SavePassesResult** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nPossible result codes passed back in `onActivityResult()` when calling\n[PayClient.savePasses(String, Activity, int)](/android/reference/com/google/android/gms/pay/PayClient#savePasses(java.lang.String,%20android.app.Activity,%20int)) or [PayClient.savePassesJwt(String, Activity, int)](/android/reference/com/google/android/gms/pay/PayClient#savePassesJwt(java.lang.String,%20android.app.Activity,%20int)). These are in addition to\n`Activity.RESULT_OK` and `Activity.RESULT_CANCELED`. \n\n### Constant Summary\n\n|-----|-------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [API_UNAVAILABLE](/android/reference/com/google/android/gms/pay/PayClient.SavePassesResult#API_UNAVAILABLE) | The [PayClient.savePasses(String, Activity, int)](/android/reference/com/google/android/gms/pay/PayClient#savePasses(java.lang.String,%20android.app.Activity,%20int)) or [PayClient.savePassesJwt(String, Activity, int)](/android/reference/com/google/android/gms/pay/PayClient#savePassesJwt(java.lang.String,%20android.app.Activity,%20int)) API is unavailable. |\n| int | [INTERNAL_ERROR](/android/reference/com/google/android/gms/pay/PayClient.SavePassesResult#INTERNAL_ERROR) | Indicates that an internal error occurred while calling the API. |\n| int | [SAVE_ERROR](/android/reference/com/google/android/gms/pay/PayClient.SavePassesResult#SAVE_ERROR) | An error occurred while saving the passes. |\n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n\nConstants\n---------\n\n#### public static final int\n**API_UNAVAILABLE**\n\nThe [PayClient.savePasses(String, Activity, int)](/android/reference/com/google/android/gms/pay/PayClient#savePasses(java.lang.String,%20android.app.Activity,%20int)) or [PayClient.savePassesJwt(String, Activity, int)](/android/reference/com/google/android/gms/pay/PayClient#savePassesJwt(java.lang.String,%20android.app.Activity,%20int)) API is unavailable. Use\n[PayClient.getPayApiAvailabilityStatus(int)](/android/reference/com/google/android/gms/pay/PayClient#getPayApiAvailabilityStatus(int)) before calling the API. \nConstant Value: 1 \n\n#### public static final int\n**INTERNAL_ERROR**\n\nIndicates that an internal error occurred while calling the API. Retry the API call.\nIf the error persists assume that the API is not available. \nConstant Value: 3 \n\n#### public static final int\n**SAVE_ERROR**\n\nAn error occurred while saving the passes. Check\n`EXTRA_API_ERROR_MESSAGE` to debug the issue. \nConstant Value: 2"]]