#billhyuou

1 messages · Page 1 of 1 (latest)

shut acornBOT
barren yacht
#

You should check if you device has Google Play service and you've logged in a Google account.

river mural
barren yacht
#

Is your GooglePayEnvironment set to Test?

river mural
#

yes

#

PaymentConfiguration.init(
this@odd islandipGooglePayActivity,
googlepayInfoBean.publishableKey
)

barren yacht
#

and you've added android:name="com.google.android.gms.wallet.api.enabled" to AndroidManifest?

river mural
#

yes have this code

#

<!-- Enabling this flag is required in order to use the PaymentsClient -->
<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />
<!--facebook-->

#

GooglePayLauncher(
activity = this@odd islandipGooglePayActivity,
config = GooglePayLauncher.Config(
environment = if (AppUtils.isAppDebug()) {
GooglePayEnvironment.Test
} else {
GooglePayEnvironment.Production
},
merchantCountryCode = isEmptyNoBlank(googlepayInfoBean.countryCode),
merchantName = isEmptyNoBlank(googlepayInfoBean.merchantDisplayName)
),
readyCallback = {},resultCallback={}}

barren yacht
#

Did. you included a card in the payment_method_types when creating a PaymentIntent ?

river mural
#

must be real card?

barren yacht
#

Are you testing from a country where Google Pay is supported?

river mural
#

us supported?

#

Uninted states

barren yacht
#

Yes it is.

river mural
#

i use google pay can work

#

but use stripe google pay can not work

#

use the same phone

barren yacht
#

OK. Your code looks OK to me. Can you double confirm if the environment is set to Test?

river mural
#

let's me print it

#

look ,

#

the environment is Test

#

the order address is

barren yacht
#

And are merchantCountryCode and merchantName set?

river mural
#

let me see

#

Any problems?

#

i find this sdk not have log print? may can open stripe sdk log print?

barren yacht
#

The Android SDK is full open sourced

river mural
#

i known

#

but i don't known where have problem

barren yacht
#

This is going to require a bit more investigation. Sorry to redirect you, but can you write in to https://support.stripe.com/contact/email with an sample Android project that I can run and reproduce the issue. We'll respond via email/ticket after looking into it further.

river mural
#

tks ,

#

i need use we project Package Name?

barren yacht
#

It doesn't matter

river mural
#

ok , tks , i will soon send