#shashank_reactnative-revolutpay

1 messages ยท Page 1 of 1 (latest)

low juncoBOT
#

๐Ÿ‘‹ 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.

teal rivet
#

๐Ÿ‘‹ 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

silent shell
#

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 ?

teal rivet
#

I'm sorry I am not following you at all ๐Ÿ˜“

#

what isn't working? What's the error?

silent shell
#

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?

teal rivet
#

Correct the client_secret is required in that case

#

ah wait we have the "deferred intent" flow and that should just work

silent shell
#

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

teal rivet
#

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

low juncoBOT
silent shell
#

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

timber wolf
#

@silent shell just checking in, still working on this? Running in to any issues we can help with?

silent shell
#

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

low juncoBOT
inner kindle
#

Hello
Taking over, give me a moment to catch up here

silent shell
#

yes sure

inner kindle
#

Where's your Stripe account located? Can you share the account ID?

silent shell
#

Yes sure

#

Sharing it in a moment

#

hey sorry ,

#

are you referring to this account id?

inner kindle
#

acct_xxx ID of the account whose API key you're using in your app to test things

silent shell
#

acct_1S8gkTErIb1WZPsE

are you reffering to this ?

inner kindle
#

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

silent shell
#

Api key means. - publishable key ?

inner kindle
#

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?

silent shell
#

yes right

inner kindle
#

Gotcha

#

Revolut Pay is disabled in your payment method settings

silent shell
#

So I have ask my client in (xyz) to enable it right ?

inner kindle
#

Correct

#

Since you're testing in test mode, they need to make sure to enable it under test mode

silent shell
#

then I the payment method I will be enabling over there will be shown here ?
Including Revolut ?

inner kindle
#

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?

silent shell
#

We have google pay as well that I have already configured using createPlatformPayPaymentMethod, but does Revolut doesn't works in Android ?

inner kindle
silent shell
#

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 ?

inner kindle
#

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
silent shell
#

yeah right ,

#

so will be using the current flow which I have shared code with you ?

inner kindle
#

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

silent shell
#

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 .

inner kindle
#

No, your flow is correct. I only shared the relevant step to set up return URL

#

that's required