#Padek - payment questions
1 messages · Page 1 of 1 (latest)
Hello, happy to help out. One quick question I have is what you mean by
PaymentMethod returns a pm_id that we can
t use when we try creating a PaymentIntent Are you getting an error when you try to create a PaymentIntent and pass in thatpm_ID to thepayment_method` parameter? https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method
Yes, is displaying an error when in try to pass the PaymentMethod ID in the payment_method fiel inside PaymentIntent
Can you send me the text of the error?
If you can send me the request ID that would be very helpful as well https://stripe.com/docs/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
We have this doc on how to place a hold on funds from a card. You can hold funds for up to 7 days with it. https://stripe.com/docs/payments/capture-later#capture-funds
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.
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
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
don't worry at all I appreciate your time
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
omg im sorry for that dumb mistake 🤦♂️
No worries at all, happens to the best of us