#laji_stripe

1 messages · Page 1 of 1 (latest)

lapis shadowBOT
winter egret
#

👋 happy to help

#

I'm not sure I understand would you mind elaborating?

scenic mica
#

After generating _payment_element through client_secret, there is one record in the stripe payment background, and another record after the payment is successful?

#

react

#

client_secret by PHP

winter egret
#

would you mind sharing your Payment Intent ID?

scenic mica
#

which one

#

account ID?

#

order ID?

#

has maney ID in dashboard

#

?

winter egret
#

the Payment Intent ID pi_xxxx

scenic mica
#

pi_3NpofiLL4ALOXD231j7JnOSm

#

I haven't paid yet

#

After my payment is successful, there will be another record on the platform.

winter egret
#

let me take a look

scenic mica
#

Do I have to pay now?

winter egret
#

please hold on for a second

scenic mica
#

okk

winter egret
#

yes would you mind to pay it?

scenic mica
#

ok

#

pi_3NpoNVLL4ALOXD230mIbpTc1

#

My payment was completed and a new ID was generated.

winter egret
#

what are you doing in your webhook endpoint code?

scenic mica
#

Can you explain in detail?

winter egret
#

how are you integrating with Stripe?

scenic mica
#

The unfinished ones are created when loading the stripe form. After the payment is successful, the first item

winter egret
#

would you mind sharing your code?

scenic mica
#

follow web element

#

Backend code?

winter egret
#

both please

scenic mica
#

ok?

winter egret
#

give me a minute to take a look

lapis shadowBOT
scenic mica
#

help me

winter egret
#

I'm reading your code, please be patient

#

you're creating a Payment Intent in the backend and sending the client_secret

scenic mica
#

Can Payment be displayed without a backend?

winter egret
#

then instead of using that to stripe.confirmPayment you're creating a Payment Method (stripe.createPaymentMethod) and sending that PaymentMethod to your PaymentMethodOnCart which then I presume that calls your backend and creates another PaymentIntent

scenic mica
#

Can this replace the client_secret on the backend?

winter egret
scenic mica
#

Mine is web react

#

I came based on this, return the clientSecret to the front end, and then generate the payment form

#

This page case is too simple and has no interaction with the backend

#

no stripe.createPaymentMethod in the demo

cedar forge
scenic mica
#

I read this document and later requested the backend to return client_secret. At this time, a record was generated on the payment platform. But after the payment is successful, there will be a new record

cedar forge
#

what do you call a "payment record"? do you have examples of this happening?

sounds like a bug in your implementation if you are creating+confirming more PaymentIntents than are needed.

scenic mica
#

You came later. I think you need to check the chat history before answering me.

#

Integrate according to your documentation. You need to explain to me why there are two records.

#

If you can't help me then don't talk or exit the chat

#

you know?