#Padek - payment questions

1 messages · Page 1 of 1 (latest)

wheat bridge
coral field
#

Yes, is displaying an error when in try to pass the PaymentMethod ID in the payment_method fiel inside PaymentIntent

wheat bridge
#

Can you send me the text of the error?

coral field
#

of course one sec

wheat bridge
#

Thank you. Checking in to that. It does look like that should have been able to be used there and I am not immediately sure why you got these error

#

To answer your other questions for while I am looking, we don't have anything that directly does that but you can do pretty similar behavior yourself.

#

So actually you can probably do almost exactly what you want to do but keep in mind that it would have to essentially be two separate payments. You can either hold half the funds for 5 days and then capture it along with creating a new payment, or you can hold the funds then cancel the hold and charge the full amount when you want to charge.

#

And the thing to keep in mind there is that it would be possible for one of those payments to succeed and the other to fail in either scenario so keep that in mind when planning out how things can go wrong.

coral field
#

okay that makes sense thank you for the answer

#

just need to get pass that first error I'm also reading see what can be done

wheat bridge
#

Sounds good. Apologies I been a bit busy and haven't gotten to look much more. I will be back on this in a couple minutes and should have an answer for you soon

coral field
#

don't worry at all I appreciate your time

wheat bridge
#

Ah I found it. It looks like your code accidentally sent us a leading space before the payment method ID so we got " pm_12345" instead of "pm_12345"

#

If you make the request again without the leading space I think it should work

coral field
#

omg im sorry for that dumb mistake 🤦‍♂️

wheat bridge
#

No worries at all, happens to the best of us