flutter-plugin
flutter-plugin copied to clipboard
RawGooglePayButton requires a PaymentConfiguration
RawGooglePayButton requires PaymentConfiguration but this doesn't allow us to use flutter_pay's Pay client effectively.
Can you elaborate on that @JudahMcNicholl?
The RawGooglePayButton now uses the PayButton API for Google Pay, which requires initialization parameters from the configuration. (see https://developers.google.com/pay/api/android/guides/resources/pay-button-api).
Closing this issue due to inactivity. Feel free to re-open if relevant.
I think it is more reasonable to have a PaymentConfiguration in a GooglePayButton, but not in RawGooglePayButton since we manually process onPressed using Pay client:
final Pay payClient = Pay({
PayProvider.google_pay: getGooglePayConfiguration(),
});
final paymentResult = await payClient.showPaymentSelector(
PayProvider.google_pay,
[item],
);
...