Cấp phép cho ứng dụng Android của bạn cho SDK Android của Google Wallet
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Google Wallet API cung cấp SDK Android để giúp bạn tích hợp dễ dàng hơn
Các chức năng của Google Wallet trực tiếp trong ứng dụng Android với mã gốc.
Để sử dụng SDK Android của Google Wallet, bạn phải cung cấp tên gói của
Ứng dụng Android và vân tay số SHA-1 của chứng chỉ ký ứng dụng. Các thông tin đăng nhập này
được dùng để cho phép phát hành ứng dụng và xác thực các yêu cầu
do ứng dụng của bạn gửi đến Google Wallet API.
1. Lấy vân tay số SHA-1 của chứng chỉ ký
Để nhận vân tay số SHA-1 của chứng chỉ ký, hãy làm theo hướng dẫn trong
Tài liệu của Dịch vụ Google Play về cách truy xuất nội dung bằng một trong những cách sau:
Vân tay số SHA-1 của chứng chỉ ký có dạng như sau:
DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09
2. Cho phép ứng dụng của bạn trong bảng điều khiển Google Wallet
Sau khi bạn có vân tay SHA-1, hãy làm như sau để cấp quyền cho thiết bị Android
trong bảng điều khiển Google Wallet.
- Truy cập vào Google Pay và Bảng điều khiển Wallet.
- Trong điều hướng bên trái, nhấp vào 'API Ví Google' để mở bảng điều khiển Google Wallet.
- Nhấp vào nút "Các tính năng bổ sung" .
- Trong cột "Quyền cho ứng dụng" hãy nhấp vào nút '+ Thêm ứng dụng' .
- Nhập tên gói của ứng dụng và vân tay SHA-1 của bạn.
- Nhấp vào "Thêm ứng dụng".
Nếu tên gói và ứng dụng của bạn xuất hiện trong phần "Quyền cho ứng dụng" , ứng dụng của bạn đã được cấp phép
để gửi các yêu cầu đến API Google Wallet bằng SDK Android của Google Wallet.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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."]]