#Jcme

1 messages · Page 1 of 1 (latest)

stark quartzBOT
next sparrow
#

hi! what kind of device are you running this on? an emulator or a physical device?

dreamy fractal
next sparrow
dreamy fractal
next sparrow
#

so Google Pay works with the PaymentSheet for you normally, and it's only specifically if you're using setupFutureUsage ?

#

or rather, using a SetupIntent?

dreamy fractal
next sparrow
#

what version of stripe-android does your app use? Can you share a SetupIntent ID seti_xxxx where you're having this problem?

dreamy fractal
next sparrow
#

do you have a SetupIntent ID?

dreamy fractal
next sparrow
#

yep, or just the seti_xxxx part of it

dreamy fractal
#

seti_1LsRuAL08i0ZDogVqCD90GPr_secret_MbfEUdTBFk5mJG9Nhlez4PLV4Bfcw51

next sparrow
#

I see it's associated with a Customer, are you also using an ephemeral key? Can you please share your complete code? (in text not a screenshot)

dreamy fractal
#

Can a physical machine test future payments? Apple pay on iOS is only available in the simulator.

next sparrow
#

it should work fine yes

#

to clarify, are you in India(physically, or your Google account)? There's an Indian version of Google Pay that is different from the global version, and we don't really support it.

dreamy fractal
#

ephemeralKey = "ek_test_YWNjdF8xTFZvNDBMMDhpMFpEb2dWLEhxV09tb3RLNGNqNHhJMHNqOURVR3NnNm1taTVMb0I_00xx7nidE8"
customer = "cus_MbfI302rGZDVRA"
setupIntent = "seti_1LsRxnL08i0ZDogV0nYBXXJz_secret_MbfIGLdmLo7pQDCzRFS0oJaoHzoQNuh"

#

not indian

next sparrow
#

Can you please share your complete code? (in text not a screenshot)

dreamy fractal
#

customerConfig = new PaymentSheet.CustomerConfiguration(
response.getData().getCustomer(),
response.getData().getEphemeralKey()
);
setupIntentClientSecret = response.getData().getSetupIntent();
PaymentConfiguration.init(getApplicationContext(), response.getData().getPublishableKey());
final PaymentSheet.GooglePayConfiguration googlePayConfiguration =
new PaymentSheet.GooglePayConfiguration(
PaymentSheet.GooglePayConfiguration.Environment.Test,
"NZ","NZD"
);

        final PaymentSheet.Configuration configuration = new PaymentSheet.Configuration.Builder("Example, Inc.")
                .customer(customerConfig)
                .googlePay(googlePayConfiguration)
                // Set `allowsDelayedPaymentMethods` to true if your business can handle payment methods
                // that complete payment after a delay, like SEPA Debit and Sofort.
                .allowsDelayedPaymentMethods(true)
                .build();
        paymentSheet.presentWithSetupIntent(
                setupIntentClientSecret,
                configuration
        );
#

It's all based on the documentation.

next sparrow
#

ok, let me think/look for a while

dreamy fractal
#

thanks

next sparrow
#

still having a look but just confirming it does generally work fine for me

dreamy fractal
#

it's wired

next sparrow
#

can you share the full code? including how you initialise the library and call PaymentConfiguration.init and how you create the paymentSheet variable, for example

dreamy fractal
#

Application onCreate:PaymentConfiguration.init(this, PUBLISHABLE_KEY);

#

paymentSheet = new PaymentSheet(this, this::onPaymentSheetResult);

#

It's all written according to the documentation.

next sparrow
#

makes sense

dreamy fractal
#

The google pay button just doesn't appear.

#

This is an example from the documentation

#

I just tried 20.15.0

next sparrow
#

I have no idea unfortunately, it all works fine for me. If it helps, here's the code I use and I'm running it on a physical Samsung Galaxy S222 Ultra on Android version 12 and version 20.15.0 of our SDK

#

I'd suggest trying to run your code on other devices you/your colleagues have access to.

dreamy fractal
#

<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />

#

also config manifest

next sparrow
#

yep, but to be clear, you said it worked for payments right? it was only in SetupIntents that it doesn't appear?

dreamy fractal
#

yes

next sparrow
#

so your configuration is likely all correct, so I really don't know what would cause this. You can try comparing your code to mine(though I didn't see any real difference in what we have) and maybe trying your code on other devices as these feels like maybe something specific to your device or Google account, I really don't have any other idea.

dreamy fractal
#

Really the only difference is the currency, the country code.

next sparrow
#

yep but I did try setting my mine to NZ and NZD too to rule that out, it still worked

#

hmm, maybe one last idea

dreamy fractal
#

emmmm

#

it's wired. Anyway, thanks for your help today.

next sparrow
#

like I assume you do since you said payments work, but maybe you are using mutliple Stripe accounts

dreamy fractal
#

do you have Google Pay enabled? --》enabled。。。。

next sparrow
#

yeah and I checked on the settings of the account that SetupIntent you posted earlier and it is indeed enabled

#

so I really have nothing here, all I can suggest is trying on some other devices

dreamy fractal
#

Ok, thanks a lot. I try another device.

#

Take the liberty to ask if you can generate an apk for me to try to see if my device can be used.

next sparrow
#

I don't think I can really do that unfortunately.

dreamy fractal
#

Oh, it's okay, I'm taking the liberty.