#raphael-madillo_docs
1 messages Β· Page 1 of 1 (latest)
π Welcome to your new thread!
β²οΈ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
β±οΈ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
π This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1415962344009498667
π Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! For Klarna (and other Buy Now Pay Later (BNPL) payment methods), when using Automatic Payment Methods, it looks at the customer IP address before deciding whether to display it as a payment method option. Are you testing this in the same country as where your Stripe account is? i.e. if your Stripe account is in FR, are you also testing from a FR IP?
Thanks for the super fast reply! π
Yes I'm in France and I think our account is setup in France.
Also if it can help, we are correctly seeing stripe payment method (including Klarna) on our web (in react).
hmmm, interesting, can you share the corresponding PaymentIntent where you expected to see Klarna but did not?
The PaymentIntent id will have the prefix pi_
and it doesn't display in both iOS and Android? or only iOS?
Let me 10min, I would have to generate a build for Android with latest stripe version π
i think you may not have to do that, knowing you're testing on iOS, i can kinda throw out a hypothesis first
did you set up a return URL? https://docs.stripe.com/payments/accept-a-payment?platform=react-native#react-native-set-up-return-url
Yes this is my implementation in frontend
const { error: initError } = await initPaymentSheet({
merchantDisplayName: 'Kolet SAS',
paymentIntentClientSecret,
applePay: {
merchantCountryCode: 'FR',
},
googlePay: {
merchantCountryCode: 'FR',
testEnv: false,
},
style: 'automatic',
customerId,
customerEphemeralKeySecret,
returnURL: 'kolet-app://main/home',
});
And payment methods like ideal, revolut pay etc are correctly working
(I'll let you know once I have the build on Android!)
hmmm, you don't seem to have allowsDelayedPaymentMethods: true?
I tried with it but it didn't change anything, let me retry !
This is the github issue that stated so:
https://github.com/stripe/stripe-react-native/issues/1002
ah yeah, you're right, my bad, it's not an asynchronous payment method
Ah Android builds might take longer to come I have compatibility errors btw latest stripe and my current deployment
hi! I'm taking over this thread.
Thanks @blissful fulcrum π
Looks like I'm not seeing Klarna neither on Android :/
(for Android I tried with "@stripe/stripe-react-native": "^0.41.0", otherwise I run into this issue https://github.com/stripe/stripe-react-native/issues/1937, but that's another topic)
are you using some kind of VPN that could be changing your country to outside of France?
Hmm not really, I just use ngrok to reach out to my local API from my real device but that's all
can you try removing the returnURL: 'kolet-app://main/home', and see if that changes anything?
if that doesn't work, there may be something on Stripe's end that's blocking Klarna on your account. in this case, I can you open a support case with our team so we can have more time to investigate this?
Hello @fair tusk, we have sent you a direct message, please check it at https://discord.com/channels/@me/1415978869026193479
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.