#vrk-twostep-payments

1 messages · Page 1 of 1 (latest)

muted birchBOT
#

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.

thorn radish
#

Hi there, I am creating the paymentIntent(including the amount(want to pass the fee on to customers), currency and paymentMethodTypes(mainly card and au_becs_debit)). I am creating the paymentIntent and returning the client secret to create the elements in the frontend before user selecting the payment method. but the fee is different for card payments and au_becs_debit. How can I deal with it ?

muted birchBOT
icy vigil
thorn radish
#

Yeah at step 5 server.js line 9 request.body.payment_method_id, it is coming from frontend request, How can I et that in the frontend ?

icy vigil
#

What does 'How can I et that in the frontend ' mean?

thorn radish
#

How can i get the PAYMENT_METHOD_ID in the frontend to make the "/summarize-payment" request ?

twin quest
#

vrk-twostep-payments

#

@thorn radish at step 4 earlier you called createPaymentMethod() and got the id there

#

see line 37 on step 4 // Create the PaymentMethod using the details collected by the Payment Element const {error, paymentMethod} = await stripe.createPaymentMethod({ elements, params: { billing_details: { name: 'Jenny Rosen', } } });