#shashank_reactnative-revolutpay
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/1448387080731365420
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- shashank_docs, 1 hour ago, 4 messages
๐ I don't really understand this part of your question
When user tap on eg. 'Buy with Revolut' is the bottom sheet of payment element appears?
shashank_reactnative-revolutpay
I wanted to know like in apple pay and google pay with stripe I have used - createPlatformPayPaymentMethod , then bottom sheet appears now in case of Revolut Pay which method we have to use ?
I'm sorry I am not following you at all ๐
what isn't working? What's the error?
Did you follow https://docs.stripe.com/payments/revolut-pay/accept-a-payment?payment-ui=mobile&platform=react-native which has end to end docs?
As per the documentation, the client secret is required for confirmPayment, correct?
If so, I will need to ask our backend team to provide an API to return this value.
Also, I had a question regarding the UI flow when using confirmPayment with Revolut Pay:
What will the user see at that point?
Are we redirecting to the Revolut app, opening a webview, or handling a redirect URL ourselves?
Should the backend return a Revolut redirect URL, or is this something we need to manage entirely on the client side?
Correct the client_secret is required in that case
ah wait we have the "deferred intent" flow and that should just work
yes checking
Just wanted to update you here, I am still looking into it
I will get back here in a while with my quries please donot close this thread
We close threads quickly here but you can always ask a new question with a lot more details of where you are stuck and what is blocking you at that point
yes che king please wait
I am trying to implement by following the above doc shared , please donot close the thread I will get back here in a moment
@silent shell just checking in, still working on this? Running in to any issues we can help with?
Yeah actually I am unable to see the revolut pay in the bottom sheet though I have enabled it in stripe dashboard, I am sharing a code here for reference kindly guide me here am I missing something here
Hello
Taking over, give me a moment to catch up here
yes sure
Where's your Stripe account located? Can you share the account ID?
Yes sure
Sharing it in a moment
hey sorry ,
are you referring to this account id?
acct_xxx ID of the account whose API key you're using in your app to test things
acct_1S8gkTErIb1WZPsE
are you reffering to this ?
Yes
But that seems to be a Connected Account
Are you using the XYZ platform's API key or the above account's API key?
Oh also, have you set up a return URL? If not, Revolut Pay won't work without it
Api key means. - publishable key ?
Yes, the pk_test_xxx key you're using on the Client-side
I think you're making the request as XYZ platform
I see some requests in the logs from SaunaSpot
that's your test app right?
yes right
So I have ask my client in (xyz) to enable it right ?
Correct
Since you're testing in test mode, they need to make sure to enable it under test mode
then I the payment method I will be enabling over there will be shown here ?
Including Revolut ?
It should be, I think you also need to set up the return URL as I shared above
If you test on Android, what payment methods are you seeing?
We have google pay as well that I have already configured using createPlatformPayPaymentMethod, but does Revolut doesn't works in Android ?
It is supported in Android. If you test on Android, I suspect you'll see more payment methods..
iOS requires you to set up return URL for certain payment methods to work - https://docs.stripe.com/payments/revolut-pay/accept-a-payment?payment-ui=mobile&platform=react-native#react-native-set-up-return-url
Regarding deep link setup , I have to check because we are using wix navigation it quite complex here to do setup
In the shared doc we have no where initializing the payment sheet then how the stripe in managing to Revolut things?
Also as per the shared doc the client secret is required to trigger(for that I have to ask my backend devloper to share it right?)
const {error, paymentIntent} = await confirmPayment(clientSecret, {
paymentMethodType: 'RevolutPay',
});
but does the Revolut piece gets open in Webview?
shouldn't it open here or show here in bottom sheet which I have shared ss , if I ask client to enable it ?
You are configuring the PaymentSheet -
merchantDisplayName: 'SaunaSpot',
intentConfiguration: {
mode: {
amount: totalAmount ?? 0, // minor units
currencyCode: (currency || 'EUR').toUpperCase(),
},
},
...
});```
and Stripe SDK pulls the available payment methods from your account settings using your API key
Yes, you need to still set up a return URL for that flow.
Once you do that + enable Revolut Pay on the XYZ account then it should start showing up
okay noted thanks,
so there is no need to use confirmPayment method in this case (sorry I might be irritating you on my questions ) things are quite complicated here .
But the clientSecret is must required here in both the cases from backend .