#xtreme_cs
1 messages · Page 1 of 1 (latest)
Hello 👋
Let's chat here
hi dude
what up
I wondering how to detect the a google pay in android native sdk
I saw a android demo for google api
To watch the Google Pay API Explained → https://bit.ly/2P7knNk
To check out the Web implementation video → https://bit.ly/2UZogaI
With the Google Pay API, your customers can use the cards saved to their Google Accounts for seamless checkout within your apps and sites. Learn how to implement the API for Android with just a few lines of code and ...
there is an option that you could find out that a google pay is available without request the payment to google pay api
onGooglePayReady is the callback you'd use
https://stripe.com/docs/google-pay?platform=android#instantiate
also, there is an API in iOS native sdk that determine the apple pay is available or not
but i knew that we need googlepaylaunchder
without presentForPaymentIntent the callback won't be call
environment = GooglePayEnvironment.Test,
merchantCountryCode = Constants.UK_COUNTRY_CODE,
merchantName = Constants.STRIPE_G_PAY_MERCHANT_NAME
)
var launchder = GooglePayLauncher(activity, config, readyCallback = {
onCompleted(it)
}, resultCallback = {
Timber.tag("StripePaymentProvider").i(it.toString())
})
return launchder
this is my code
I have an ur that I could not use the google pay button
Thanks let me try that link you provided. I will be back in 2 min
👍