Hold and Capture on Stripe

In Corso Pubblicato 3 anni fa Pagato alla consegna
In Corso Pagato alla consegna

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

PHP JavaScript API PayPal Stripe Freelancer API

Rif. progetto: #29406606

Info sul progetto

1 proposta Progetto a distanza Attivo 3 anni fa

1 freelance ha fatto un'offerta media di $50 per questo lavoro

WaqasSuriya

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 Altro

$50 USD in 1 giorno
(67 valutazioni)
5.1