Interface for managing Google Pay payment operations within the PayPal SDK
Remarks
This interface provides methods for creating and managing Google Pay payment sessions.
Unlike other payment methods, Google Pay uses merchant-controlled flow with Google's
native PaymentsClient for rendering the button and handling payment authorization.
constpaymentMethods = awaitsdkInstance.findEligibleMethods(); if (paymentMethods.isEligible("googlepay")) { constgooglePaySession = sdkInstance.createGooglePayOneTimePaymentSession(); // Use googlePaySession.formatConfigForPaymentRequest() and confirmOrder() }
A session object for managing the Google Pay payment flow
Remarks
This session object provides methods to configure Google Pay and confirm orders.
Note that this session does not drive the UI directly — you'll use Google's
PaymentsClient to render the button and collect payment data.
Interface for managing Google Pay payment operations within the PayPal SDK
Remarks
This interface provides methods for creating and managing Google Pay payment sessions. Unlike other payment methods, Google Pay uses merchant-controlled flow with Google's native PaymentsClient for rendering the button and handling payment authorization.
Example