#sindev_unexpected
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/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.
- sindev_unexpected, 14 hours ago, 27 messages
- sindev_unexpected, 19 hours ago, 13 messages
- sindev_unexpected, 3 days ago, 8 messages
cus_R1rKtNd8Vrzgwk
this is how it looks
this is how I want it to look like, before adding Amazon pay
๐ happy to help but I'm not sure I understand the difference
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
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"
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?
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
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?
it's created by backend actually, I don't handle anything on the client side
for me, in Albania, Apple Pay is not available
that's why I see the right view, with one step
but for other coworkers, where all above payment methods are available, they always see the two-step view not depending on saved payment methods
that means that they do actually have an apple pay PM saved
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
why?
because the customerEphemeralKeySecret is not the SetupIntent.clientSecret
this is all the fields I be getting for stripe intent
do we need to generate something else?
this should be sent by the Backend as a separate value
and this resolves my issue?
also, can you provide some documentation related to customerEphemeralKeySecret generation? Will send the details to backend
they should be able to see it here https://docs.stripe.com/elements/customer-sheet
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
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
I don't think if the add of Amazon Pay caused issue with the customerEphemeralKeySecret
but the problem is not customerEphemeralKeySecret
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 ?
customerEphemeralKeySecret has been like this since the beginning of the app, and we didn't have this behaviour at all
For PaymentSheet you can refer to this screen:
https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentsUICompleteScreen.tsx
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
I understand that, but we need a clear way for reproductions in order to understand the issue you are facing.
isn't the customer id that I sent you enough to check details?
I've already checked this customerId cus_R1rKtNd8Vrzgwk and nothing relevant so far..
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
I see, that's kind of expected
it' displays wallets and any other saved payment methods
but it didn't before
and I didn't change anything in the stripe config params
except for adding customFlow: true
does it affect?
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.
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
and this customer had Apple Pay before, it never showed this additional step
this is how it looked like for the same customer
Not really sure what the issue could be really. It's working now right? So I don't understand the concern
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
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
Find help and support for Stripe. Our support site 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.