#Haresh-android-google-pay

1 messages · Page 1 of 1 (latest)

empty obsidian
#

Hey, what specifically are you looking for?

graceful pagoda
#

i will implement on stripe Gpay process. @empty obsidian

#

Please share reference documentation for Google pay process my domain android java @empty obsidian

empty obsidian
graceful pagoda
#

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)
);

empty obsidian
#

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

Learn how to accept payments using Google Pay.

graceful pagoda
#

Thanks for your support @empty obsidian

empty obsidian
#

Sure, np!