مجوز برنامه Android خود را برای Google Wallet Android SDK
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Google Wallet API یک Android SDK ارائه میکند تا ادغام قابلیتهای Google Wallet را مستقیماً در برنامههای Android خود با کد بومی برای شما آسانتر کند.
برای استفاده از Google Wallet Android SDK، باید نام بسته برنامه Android خود و اثر انگشت SHA-1 گواهی امضای برنامه خود را ارائه دهید. این اعتبارنامهها برای اجازه دسترسی به انتشار برای برنامه شما و تأیید اعتبار درخواستهای ارسال شده توسط برنامه شما به Google Wallet API استفاده میشود.
1. اثر انگشت SHA-1 گواهی امضای خود را دریافت کنید
برای دریافت اثر انگشت SHA-1 گواهی امضای خود، دستورالعملهای موجود در اسناد خدمات Google Play را برای بازیابی آن با استفاده از یکی از موارد زیر دنبال کنید:
اثر انگشت SHA-1 گواهی امضای شما شبیه به این است:
DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09
2. برنامه خود را در کنسول Google Wallet مجاز کنید
هنگامی که اثر انگشت SHA-1 خود را دریافت کردید، موارد زیر را انجام دهید تا برنامه Android خود را در کنسول Google Wallet مجاز کنید.
- به کنسول Google Pay & Wallet بروید.
- در سمت چپ، روی «Google Wallet API» کلیک کنید تا کنسول Google Wallet باز شود.
- روی برگه «ویژگیهای اضافی» کلیک کنید.
- در کادر «مجوزهای برنامه»، روی دکمه «+ افزودن یک برنامه» کلیک کنید.
- نام بسته برنامه و اثر انگشت SHA-1 خود را وارد کنید.
- روی «افزودن برنامه» کلیک کنید.
اگر نام بسته و برنامه شما در کادر «مجوزهای برنامه» ظاهر میشود، برنامه شما مجاز است با استفاده از Google Wallet Android SDK درخواستهایی را به API Google Wallet ارسال کند.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\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."]]