#dino_pephanis - MOTO

1 messages ยท Page 1 of 1 (latest)

atomic horizon
#

๐Ÿ‘‹ Thanks for reaching out
Could you give more context please about your request? What is MOTO ?

slim vale
#

MOTO - Mail Order Telephone Order

#

I am refactoring the code we have to use StripeJS & Webhooks

#

Using the Stripe API I would add $data['payment_method_options']['card']['moto'] = true;

#

however when I try and do this when I create the PaymentIntent i get an error The parameter moto cannot be passed as part of payment_method_options when creating a PaymentIntent unless confirm is set to true.

#

see req_IxQMYKfCFwchnZ

atomic horizon
#

Thanks for sharing!

slim vale
#

to pay via Stripe JS I have:

slim vale
#
            this.args.clientSecret,
            {
                payment_method: {
                    card: cardElement,
                },
            }).then(function (result) {
// Handle result.error or result.paymentMethod
});```
#

Yes is has been working, just refactoring the code

atomic horizon
slim vale
#

I am trying to use stripeJs

#

how do tell StripeJS this is a MOTO payment so that when the it is confirm the moto tag is applied

atomic horizon
#

You don't need stripeJs for MOTO Payment, you need to specify the card details in the same request while creating the PaymentIntent in your backend

#

dino_pephanis - MOTO

slim vale
#

Is there no way of passing moto using stripejs?

atomic horizon
#

No, as you need to pass PaymentMethod when creating the PaymentIntent, and you can't create PaymentIntent using stripeJs, you need to do it in your backend

slim vale
#

I am creating the PaymentIntent in the backend but confirm it using stripejs

#

I can't add moto with out setting confirm to true which is done when the process is completed which i want to do via stripejs

atomic horizon
#

You need to create the PaymentIntent with confirm:true and specifying the Payment Details in the same creation request

atomic horizon
slim vale
#

OK