Hold and Capture on Stripe
$10-30 USD
Paid on delivery
I'm interested in pre-authorizing payments on Stripe. I found this code and tried to test it on my own card in terminal but can't figure it out. The pre-authorize code is to put a hold on the funds and the capture code to make the charge days later:
Pre-Authorize
curl [login to view URL] \
-u sk_test_xxxxxxxxxxxxxxxxxx: \
-d amount=1099 \
-d currency=usd \
-d "payment_method_types[]"=card \
-d capture_method=manual
Capture
curl [login to view URL] \
-u sk_test_xxxxxxxxxxxxxxxxxxxx: \
-d amount_to_capture=750
I assume some combination of this data set needs to be added?
-d "payment_method_data[card][number]"=4242424242424242 \
-d "payment_method_data[card][exp_month]"=1 \
-d "payment_method_data[card][exp_year]"=01 \
-d "payment_method_data[card][cvc]"=001 \
-d "payment_method_options[card][moto]"=true \
-d "confirm"=true
I'm just not sure of the last two rows (moto and confirm) and/or if it should be placed before or after capture_method=manual. Or if either of those same two commands would make it a charge rather than a hold.
Here's the link where I found the info:
[login to view URL]
I need help figuring this out. Probably won't take too much time.
Thanks,
Jeremy
Project ID: #29406606
About the project
1 freelancer is bidding on average $50 for this job
Hello respected client, I hope you have a good day. Thanks for reading my response to your project. I have seen your project detail for the " Hold and Capture on Stripe ". I am ready to start your project immediate More