#Iyyappan
1 messages · Page 1 of 1 (latest)
What do you mean by 'not working'? It's not available on the Payment Sheet?
Any extra config there in the package?
Can you share an example Payment Intent where it's unavailable? pi_xxx
pi_3LzIMFCh0aVQteBp1P1MTjmT_secret_WcFp1FaZX20LNY11OFJf0H5kg
Yes But I have enabled in the stripe payment method.
Hmm, can see its offered as an available PM on that payment
My guess is you may need to update SDK version
I'm using Latest Expo SDK version 46.
Can you let me know the Afterpay is working the Expo react native?
That's an old version of our React Native SDK though: https://github.com/stripe/stripe-react-native/releases
Which versions of the iOS/Android SDKs are bundled in your app?
Hmm, don't think that correlates to stripe-ios or stripe-android version as they're both not at v33
could you also share more details like the exact code you're using to display the PaymentSheet, and if this happens on iOS or Android targets, or both?
const { error } = await initPaymentSheet({
customerId:customer,
paymentIntentClientSecret: paymentIntent,
customerEphemeralKeySecret:ephemeralKey,
merchantCountryCode:"CA",
applePay:{
merchantCountryCode:"CA",
},
googlePay:{
merchantCountryCode:"CA",
testEnv:true,
currencyCode:'CAD'
},
allowsDelayedPaymentMethods: true,
merchantDisplayName:"Stripe",
});
I notice you don't pass a returnUrl, which is important and not passing it will cause a lot of payment methods to not be possible on iOS
does this happen(Afterpay not appearing) on iOS or Android targets, or both?
in any case, for iOS you pretty much always need to implement this : https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#react-native-set-up-return-url so that redirect-based payment methods will work
Yes the AfterPay is not appearing both.
well I'd suggest two things
- set up a return URL for iOS per the links above
- confirm the version of our libraries you use. The easiest way is that I can tell you — please make some test payment using a card instead for example in your app, and share the PaymentIntent ID
pi_xxxso I can check our logs
I'm using Expo SDK 46 with @stripe/stripe-react-native version 0.13.1.
pi_3LzIMFCh0aVQteBp1P1MTjmT_secret_WcFp1FaZX20LNY11OFJf0H5kg
I need you to make a payment on that PaymentIntent so that there's a log from your app (please make some test payment using a card instead for example in your app)
again, 0.13.1 is really old
maybe you need to do an npm update so it actually updates Expo's dependencies? I have never used Expo myself, but its version 46 should have the latest version of our SDKs. Your app is just not using them
so you need to do a full clean update or something for example.
I'm already used latest version @stripe/stripe-react-native version 0.19.0
But no reaction
if you're using the latest version, can you now check if it works on Android and not iOS?
Any documents there run process?
not sure what that means
anyway let me try to get Afterpay running in my own React Native app and I'll get back to you with anything I find
okay thanks
unfortunately I wasn't able to get this payment method to show up, and neither was a colleague who I asked to try in their test set up, so there's something deeper going on here it seems like
looks like a colleague of yours was also working with on this yesterday, so same thing, please write into https://support.stripe.com/?contact=true so we can dig further into this
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.