#wackjeston_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1284142427288113247
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Yeah the error message is accurate
Hello
You can't update a PI after it's been confirmed
How do I get the payment method from the payment element without confirming it?
Because I need the payment method to turn MOTO on, but I cannot turn moto on once I have got the payment method
Why can't you set ['payment_method_options']['card']['moto'] on payment intent creation?
When I do this, it tells me I need confirm turned on, but I cannot turn confirm on without a payment method
so I need to payment method from the payment element without confirming it
is it possible to initiate the payment element without a intent? and then get the payment method, then create the intent?
yes
But you can set moto in the same request as confirmation: https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-moto
So shouldn't be necessary to collect payment prior to creating intent
Hello again
So I tried using the php confirm function instead of the js confirm function.
The js function takes the payment method from the payment element, whilst the php function does not. so I still can't enable MOTO because their is no payment method in my intent
is there any other way of obtaining the payment method that has been entered into my payment element
Because the JS confirm function does not allow me to turn MOTO on, only the php one does
Hello? not sure if anyone has seen this?
PLEASE HELP
Hi looking. Please be patient
sorry, I didn't know if anyone had seen
Yeah I think you'll need to use this flow then: https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment
Is MOTO not meant to be used with the payment element?
Cause Moto is only for card really and the payment element supports everything
But obviously the card element is now depricated
It's not meant to be used w/ the payment element, no
Let me ask a colleague if there's a way around this
Ok yeah it is possible actually through the server side confirmation flow w/ confirmation tokens
Since confirmation happens on the server in that flow
Can I use this with the payment element?
Is MOTO only for the terminal now?
doesn't make sense as the customer won't be their with their card