Created
March 23, 2022 01:43
-
-
Save atwj/f1ecb43a930704a2ecd67d407cf5272c to your computer and use it in GitHub Desktop.
Stripe e-mandate API calls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST https://api.stripe.com/v1/customers \ | |
| -u sk_test_: | |
| // Beta | |
| curl https://api.stripe.com/v1/setup_intents \ | |
| -u sk_test_: \ | |
| -d "payment_method_options[card][mandate_options][reference]"="reference" \ | |
| -d "payment_method_options[card][mandate_options][description]"="description" \ | |
| -d "payment_method_options[card][mandate_options][amount]"=100000 \ | |
| -d "payment_method_options[card][mandate_options][amount_type]"="maximum" \ | |
| -d "payment_method_options[card][mandate_options][currency]"=inr \ | |
| -d "payment_method_options[card][mandate_options][start_date]"=UNIX_TIME_NOW \ | |
| -d "payment_method_options[card][mandate_options][interval]"="sporadic" \ | |
| -d "payment_method_options[card][request_three_d_secure]"="any" \ | |
| -d "payment_method_data[type]"="card" \ | |
| -d "payment_method_data[card][cvc]"="438" \ | |
| -d "payment_method_data[card][exp_month]"="02" \ | |
| -d "payment_method_data[card][exp_year]"="28" \ | |
| -d "payment_method_data[card][number]"="4000003560000008" \ | |
| -d "confirm"="true" \ | |
| -d "customer"="cus_ID" \ | |
| -d "use_stripe_sdk"="false" \ | |
| -d "return_url"="https://stripe.com" | |
| // GA | |
| curl https://api.stripe.com/v1/setup_intents \ | |
| -u sk_test_: \ | |
| -d "payment_method_options[card][mandate_options][reference]"="reference" \ | |
| -d "payment_method_options[card][mandate_options][description]"="description" \ | |
| -d "payment_method_options[card][mandate_options][amount]"=100000 \ | |
| -d "payment_method_options[card][mandate_options][amount_type]"="maximum" \ | |
| -d "payment_method_options[card][mandate_options][currency]"=inr \ | |
| -d "payment_method_options[card][mandate_options][start_date]"=UNIX_TIME_NOW \ | |
| -d "payment_method_options[card][mandate_options][interval]"="sporadic" \ | |
| -d "payment_method_options[card][mandate_options][supported_types][]"="india" \ | |
| -d "payment_method_options[card][request_three_d_secure]"="any" \ | |
| -d "payment_method_data[type]"="card" \ | |
| -d "payment_method_data[card][cvc]"="438" \ | |
| -d "payment_method_data[card][exp_month]"="02" \ | |
| -d "payment_method_data[card][exp_year]"="28" \ | |
| -d "payment_method_data[card][number]"="4000003560000008" \ | |
| -d "confirm"="true" \ | |
| -d "customer"="cus_ID" \ | |
| -d "use_stripe_sdk"="false" \ | |
| -d "return_url"="https://stripe.com" | |
| // BETA | |
| curl https://api.stripe.com/v1/payment_intents \ | |
| -u sk_test_: \ | |
| -d "amount"="10000" \ | |
| -d "currency"="inr" \ | |
| -d "confirm"="true" \ | |
| -d "mandate"="mandate_ID" \ | |
| -d "off_session"="true" \ | |
| -d "payment_method"="pm_ID" \ | |
| -d "customer"="cus_ID" | |
| //GA | |
| curl https://api.stripe.com/v1/payment_intents \ | |
| -u sk_test_: \ | |
| -d "amount"="10000" \ | |
| -d "currency"="inr" \ | |
| -d "confirm"="true" \ | |
| -d "mandate"="mandate_ID" \ | |
| -d "off_session"="true" \ | |
| -d "payment_method"="pm_ID" \ | |
| -d "customer"="cus_ID" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment