#sindev_unexpected

1 messages ยท Page 1 of 1 (latest)

cerulean pantherBOT
#

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

๐Ÿ“ 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.

jaunty eagle
#

cus_R1rKtNd8Vrzgwk

#

this is how it looks

#

this is how I want it to look like, before adding Amazon pay

raw kernel
#

๐Ÿ‘‹ happy to help but I'm not sure I understand the difference

jaunty eagle
#

the first one is a two-step payment sheet

#

firsty I can choose apple pay or other methods

#

while second one is just all payment methods inside one sheet

#

one step sheet

#

I don't want the two-step payment sheet

#

I opened some threads yesterday about this behaviour

#

and other support guys told me it's because of saved payment methods

#

but it's not correct, I don't have any saved payment methods

#

you can check details by id cus_R1rKtNd8Vrzgwk

raw kernel
#

taking a look

#

yes this customer doesn't have any saved methods

#

so you won't see the first step

#

the "Select your Payment Method"

jaunty eagle
#

but I see it

#

for this customer

raw kernel
#

you will directly be redirected to the page where you can add a new payment method

#

are you passing a customer ephemeral key for another customer by any chance?

jaunty eagle
#

I see it for every customer where all payment methods are available, Amazon Pay, Bancontact, Card and Apple Pay

#

yes

#

I have the ephemeral key

#

but it's always been there

#

and this behaviour was never ocurring

raw kernel
#

how are you creating the ephemeral key?

#

and how are you passing it?

#

I see it for every customer where all payment methods are available, Amazon Pay, Bancontact, Card and Apple Pay
I'm not sure I understand, would you mind reiterating on this please?

jaunty eagle
#

it's created by backend actually, I don't handle anything on the client side

jaunty eagle
#

but for other coworkers, where all above payment methods are available, they always see the two-step view not depending on saved payment methods

raw kernel
jaunty eagle
#

but this cus_R1rKtNd8Vrzgwk which you checked doesn't

#

and they still see the two-step view

#

backend just tells me that the customer ephemeral key is created by getting secret from stripe account
it's specific to the user, not passing some value from another user

raw kernel
#

this is the image you sent yesterday

#

which is technically wrong

jaunty eagle
#

why?

raw kernel
#

because the customerEphemeralKeySecret is not the SetupIntent.clientSecret

jaunty eagle
#

this is all the fields I be getting for stripe intent

#

do we need to generate something else?

raw kernel
#

this should be sent by the Backend as a separate value

jaunty eagle
#

and this resolves my issue?

#

also, can you provide some documentation related to customerEphemeralKeySecret generation? Will send the details to backend

raw kernel
cerulean pantherBOT
fallen solar
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

jaunty eagle
#

yep, it's still a bit unclear for me

#

I understand that the customerEphemeralKeySecret may not be the correct one

#

but it's been working perfectly fine until now

#

After adding Amazon Pay, it looks like it was jeopardized

#

we never faced the two-step payment sheet before it

#

we still had phones with Apple Pay setup and it was working as a one-step sheet

fallen solar
#

I don't think if the add of Amazon Pay caused issue with the customerEphemeralKeySecret

jaunty eagle
#

but the problem is not customerEphemeralKeySecret

fallen solar
#

May I invite you to clone this repository

#

and find the closest screen to your use case and try to reproduce the issur you are facing with me please ?

jaunty eagle
#

customerEphemeralKeySecret has been like this since the beginning of the app, and we didn't have this behaviour at all

fallen solar
jaunty eagle
#

okay I will look into it, but I'm still convinced it's not about customerEphemeralKeySecret or saved payment methods or something similar
on the client side I did zero changes, only Amazon Pay was added in stripe dashboard and backend changes for stripe intent generation and we have now this two-step sheet

fallen solar
#

I understand that, but we need a clear way for reproductions in order to understand the issue you are facing.

jaunty eagle
#

isn't the customer id that I sent you enough to check details?

fallen solar
#

I've already checked this customerId cus_R1rKtNd8Vrzgwk and nothing relevant so far..

jaunty eagle
#

the same person that reproduced this, after turning off Apple Pay could see the one-step payment sheet like normally

#

when enabling Apple pay, the two-step payment sheet appears

#

always, no special conditions except enabling the payment methods I have mentioned earlier: Amazon Pay, Bancontact, Card and Apple Pay

fallen solar
#

it' displays wallets and any other saved payment methods

jaunty eagle
#

but it didn't before

#

and I didn't change anything in the stripe config params

#

except for adding customFlow: true

#

does it affect?

cerulean pantherBOT
fallen solar
#

No

#

that's how the PaymentSheet, maybe before you didn't activated wallet payments or the wallet payments wasn't applicable for the payment session

#

but the pre-step of selecting wallet payment (like Apple Pay) and saved PaymentMethods

#

is a built in feature.

#

it allows the customer to manage (delete) their existing payment methods for example.

jaunty eagle
#

we don't have saved payment methods at all for this customer

#

just Apple Pay is setup in the phone

#

we don't handle at all saving payment methods in stripe

fallen solar
#

Yes Apple pay is enough to display that UI/step

#

that's expected with PaymentSheet

jaunty eagle
#

and this customer had Apple Pay before, it never showed this additional step

#

this is how it looked like for the same customer

copper epoch
#

Not really sure what the issue could be really. It's working now right? So I don't understand the concern

jaunty eagle
#

no, I still get an additional step in the payment sheet when I have Apple Pay or Google Pay

#

I will make a test now, I will remove Amazon Pay and will review the payment sheet again

#

if the Apple Pay/Google Pay will be shown as additional steps or inside the same sheet as other payment methods

copper epoch
#

I think the best course of action would be for you to write in to our team with a detailed explanation (you can reference this thread URL), and provide examples of each Payment Sheet scenario and what is unexpected. We can then figure out what is going on there. This question is really beyond the remit of Discord and we've been helping you for ~2 hours at this point

Please write in via https://support.stripe.com/contact/email?topic=api_integration