#wackjeston_api

1 messages ¡ Page 1 of 1 (latest)

trail scaffoldBOT
#

👋 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.

regal knoll
#

Yeah the error message is accurate

bold mirage
#

Hello

regal knoll
#

You can't update a PI after it's been confirmed

bold mirage
#

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

regal knoll
#

Why can't you set ['payment_method_options']['card']['moto'] on payment intent creation?

bold mirage
#

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?

regal knoll
#

So shouldn't be necessary to collect payment prior to creating intent

bold mirage
#

Okay this helps, thank you for your time

#

I will give this a try

bold mirage
#

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

regal knoll
#

Hi looking. Please be patient

bold mirage
#

sorry, I didn't know if anyone had seen

regal knoll
bold mirage
#

Awesome, I'll give this a go

#

Thanks

regal knoll
#

Actually I think you'll face the same problem there

#

Hm

bold mirage
#

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

regal knoll
#

It's not meant to be used w/ the payment element, no

#

Let me ask a colleague if there's a way around this

bold mirage
#

Thank you

#

I'll have a read whilst you ask

regal knoll
#

Ok yeah it is possible actually through the server side confirmation flow w/ confirmation tokens

#

Since confirmation happens on the server in that flow

bold mirage
#

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

regal knoll
#

No where are you seeing terminal

#

The flow I just linked lets you do this through payment element

bold mirage
#

Billiant thanks

#

I will give it a go