#kamesh-paymentelement-deferred

1 messages · Page 1 of 1 (latest)

dapper novaBOT
#

Hello! We'll be with you shortly. 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.

  • Kamesh, 14 hours ago, 7 messages
  • Kamesh, 17 hours ago, 37 messages
  • Kamesh, 20 hours ago, 8 messages
maiden hazel
#

@plush crow hello! Do you have a specific question instead of 2 docs links? Sorry hard to help you with something meta

#

The former is a doc on our PaymentRequestButton which is a specific element UI for wallets like Google Pay and Apple PAy. The latter is for PaymentElement which is a separate element UI

plush crow
#

sorry got the wrong link i think. do we have similar callback event to get payment method from Stripe SDK once the user complets the payment element flow screens (prior to confirming the payment intent()

#

so that we can complete payment confirmation through the back channel

maiden hazel
#

I'm sorry, I don't really get what you are asking unfortunately. Can you try and take a step back and clearly summarize what you need help with all in one message?

plush crow
#

we are in the process of building payment element flow (currently using payment request)

maiden hazel
#

Please try and pause

#

I am asking you to write a clear end to end summary of the clear question(s) you have. Not one or two short sentences at a time a minute a part. This pushes you to make sense of the overall thing and allows me to help you

plush crow
#

once the SDK captures the payment method based on the user action, we would like to get the payment method id, and then handle rest of the payment confirmation (create and confirm payment intent) through our backend

maiden hazel
#

So what's the problem? Sorry you wrote a sentence but not really the full question, didn't share code or said what was blocking you. What exactly do you need help with?

plush crow
#

I am still typing, please hold on

maiden hazel
#

All good, that's why I asked you to try and write a clear summary all in one message as I can't eally know when you are done or not otherwise

#

You have PaymentElement and you explicitly create a PaymentMethod and you get the pm_123 back. There's no reason to look for an event in this flow

#

kamesh-paymentelement-deferred

plush crow
#

so there is no such event in payment element?

maiden hazel
#

No it doesn't really make sense to want or need an event in this flow. Your code calls a method to get a PaymentMethod object which you get. It's functionally identical

#

Did you try the integration? If so what's not working as you'd expect and can you share the exact bit of code where you are blocked?

plush crow
#

both are not same. one is giving us the payment method and other we need to explicitly request for a payment method.

maiden hazel
#

I mean we don't magically give you a payment method, it's the result of an action in the browser, which is really functionally similar

plush crow
#

since we are migrating from payment request, we are trying to keep the functionality similar and this is the reason why we are trying to find if similar event exists?

#

I assume there is none. Thanks for the clarification.

maiden hazel
#

Gotcha so yeah there's no callback because in that flow you control when the PaymentMethod is created. But I don't really see much difference honestly

plush crow
#

ThaNKS