#dino_pephanis - MOTO
1 messages ยท Page 1 of 1 (latest)
๐ Thanks for reaching out
Could you give more context please about your request? What is MOTO ?
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
Thanks for sharing!
to pay via Stripe JS I have:
Did you contact Stripe Support, in order to activate this feature on your Account ?
https://support.stripe.com/questions/mail-order-telephone-order-(moto)-transactions-when-to-categorize-transactions-as-moto#:~:text=If you need to process phone and mail payments via the API%2C contact us to enable this feature on your Stripe account.
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
Ok then, as the error mentions when creating the PaymentIntent you need to set the attribute confirm=true
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm
Also in order to consider a payment as MOTO, you need to pass the PaymentDetails when creating the PaymentIntent at the same time:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_data
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
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
And if you don't want to handle card details in your backend, you can use Stripe element in order to get card details:
https://stripe.com/docs/payments/elements
https://stripe.com/docs/js/payment_methods/create_payment_method
Once, you get the related PaymentMethod, you pass it when creating the PaymentIntent:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
dino_pephanis - MOTO
Is there no way of passing moto using stripejs?
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
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
You need to create the PaymentIntent with confirm:true and specifying the Payment Details in the same creation request
If you don't want to handle card details in your backend, you can follow these steps ๐
OK