#Haresh-android-google-pay
1 messages · Page 1 of 1 (latest)
i will implement on stripe Gpay process. @empty obsidian
Please share reference documentation for Google pay process my domain android java @empty obsidian
There's also some pre-configuration needed: https://developers.google.com/pay/api/android/guides/setup
Okay thanks i will check this link @empty obsidian
@empty obsidian
I have one queries step 2 Instantiate GooglePayLauncher button on click to pass client secret but Creating a PaymentMethod to pass amount what is the diffrent and which is right
Instantiate GooglePayLauncher:
googlePayButton.setOnClickListener(
v -> googlePayLauncher.presentForPaymentIntent(clientSecret)
);
Creating a PaymentMethod:
googlePayButton.setOnClickListener(
v -> googlePayLauncher.present("EUR", 2500)
);
I am check this link
Difference between the 2 is whether you are confirming the Payment Intent server-side on in your application:
If you confirm your payment on your server, you can use GooglePayPaymentMethodLauncher to only collect a PaymentMethod instead of confirm payment.
https://stripe.com/docs/google-pay#creating-a-paymentmethod
Thanks for your support @empty obsidian
Sure, np!