Autorizzazione dell'app Android per l'SDK Google Wallet per Android
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'API Google Wallet fornisce un SDK Android per semplificare l'integrazione
Funzionalità di Google Wallet direttamente nelle tue app Android con codice nativo.
Per utilizzare l'SDK Google Wallet per Android, devi fornire il nome del pacchetto del tuo
App per Android e l'impronta SHA-1 del certificato di firma dell'app. Queste credenziali
vengono utilizzati per autorizzare l'accesso con diritti di pubblicazione per la tua app e autenticare le richieste
inviati dalla tua app all'API Google Wallet.
1. Recuperare l'impronta SHA-1 del certificato di firma
Per ottenere l'impronta SHA-1 del certificato di firma, segui le istruzioni riportate nella
Documentazione di Google Play Services per recuperarlo tramite uno dei seguenti modi:
L'impronta SHA-1 del certificato di firma è simile a questa:
DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09
2. Autorizzare l'app nella console di Google Wallet
Dopo aver ottenuto l'impronta SHA-1, autorizza il dispositivo Android nel seguente modo
nella console Google Wallet.
- Vai alla pagina Google Pay & Console Wallet.
- Nel menu di navigazione a sinistra, fai clic su "API Google Wallet" per aprire la console Google Wallet.
- Fai clic sul pulsante "Funzionalità aggiuntive" .
- Nella sezione "Autorizzazioni app" fai clic su "+ Aggiungi un'app" .
- Inserisci il nome del pacchetto dell'app e l'impronta SHA-1.
- Fai clic su "Aggiungi applicazione".
Se il nome del pacchetto e l'app sono visualizzati nella sezione "Autorizzazioni app" la tua app è autorizzata
per inviare richieste all'API Google Wallet utilizzando l'SDK Google Wallet per Android.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-29 UTC.
[null,null,["Ultimo aggiornamento 2025-08-29 UTC."],[[["\u003cp\u003eThe Google Wallet API offers an Android SDK for native app integration of Google Wallet features.\u003c/p\u003e\n"],["\u003cp\u003eYou need to obtain your app's SHA-1 fingerprint and package name for authorization.\u003c/p\u003e\n"],["\u003cp\u003eAuthorize your app via the Google Wallet console by providing the package name and SHA-1 fingerprint.\u003c/p\u003e\n"]]],["The Google Wallet Android SDK requires app authorization using the app's package name and SHA-1 fingerprint. Retrieve the fingerprint via `keytool` or Gradle. Then, in the Google Pay & Wallet console, navigate to the 'Google Wallet API' section, and under 'App Permissions,' add your app details, including the package name and the obtained SHA-1 fingerprint. This process authorizes the app to use the Google Wallet API.\n"],null,["# Authorizing your Android app for the Google Wallet Android SDK\n\nThe Google Wallet API provides an Android SDK to make it easier for you to integrate\nGoogle Wallet capabilities directly in your Android apps with native code.\n\nTo use the Google Wallet Android SDK, you must provide the package name of your\nAndroid app, and the SHA-1 fingerprint of your app signing certificate. These credentials\nare used to authorize publishing access for your app, and authenticate requests\nsent by your app to the Google Wallet API.\n\n1. Get the SHA-1 fingerprint of your signing certificate\n--------------------------------------------------------\n\nTo get the SHA-1 fingerprint of your signing certificate, follow the directions in the\nGoogle Play services documentation for retrieving it using either of the following:\n\n- [keytool](/android/guides/client-auth#using_keytool_on_the_certificate)\n- [Gradle](/android/guides/client-auth#using_gradles_signing_report)\n\nThe SHA-1 fingerprint of your signing certificate looks similar to this: \n\n DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09\n\n2. Authorize your app in the Google Wallet console\n--------------------------------------------------\n\nOnce you have your SHA-1 fingerprint, do the following to authorize your Android\napp in the Google Wallet console.\n\n1. Go to the [Google Pay \\& Wallet console](https://pay.google.com/business/console/).\n2. In the left nav, click 'Google Wallet API' to open the Google Wallet console.\n3. Click the 'Additional features' tab.\n4. In the 'App Permissions' box, click the '+ Add an app' button.\n5. Enter the package name of your app and your SHA-1 fingerprint.\n6. Click 'Add application'.\n\nIf your package name and app appear in the 'App Permissions' box, your app is authorized\nto send requests to the Google Wallet API using the Google Wallet Android SDK."]]