Package com. olo. olopay. googlepay
Classes for adding Google Pay support to your app.
Setting up Google Pay
Enable Google Pay in your app manifest in the application tag
<application>
...
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
</application>Content copied to clipboardImplement Google Pay: Refer to
GooglePayContext
SDK documentation for implementation detailsBuild and test your app with the Google Pay
Test
environmentReach out to Google Support and send the APK built with the
Test
environment when requestedGoogle assesses the app and provides feedback if needed
Google provides instructions on how to agree to their Terms of Service and ensure production access is granted
Send your final production APK using the Google Pay
Production
environment to Google for a real-world test which includes a few transactionsIf all tests pass, Google clears you to publish the APK
Notify Google when your APK is 100% visible to users
Types
Google Pay Configuration class
Enum for determining what environment Google Pay will use
A drop-in class that presents a Google Pay sheet to collect a customer's payment details. When successful, will return an IPaymentMethod via Result.Completed.paymentMethod
An enum representing types of Google Pay Errors
Interface for mocking/testing purposes
Callback to know when Google Pay is ready
Result class for generating payment methods via Google Pay
Callback for Google Pay results