Forward API
The forward API can be used to interact with the following API's of Stripe 1.Payment Methods using stripe_create_payment_method config 2.Tokens using stripe_create_token config 3.Charges using stripe_create_charge config
Usage
Here are some of the example calls to the endpoints:
- bash
curl https://forwarding.sandbox.braintreegateway.com/ \
-H "Content-Type: application/json" \
-X POST \
-u "${BRAINTREE_PUBLIC_KEY}:${BRAINTREE_PRIVATE_KEY}" \
-d '{
"merchant_id": "'"$BRAINTREE_MERCHANT_ID"'",
"payment_method_nonce": "fake-valid-nonce",
"name": "stripe_create_payment_method",
"url": "https://api.stripe.com/v1/payment_methods",
"method": "POST",
"data":
{
"number": "4242424242424242",
"expiration_month": "8"
"expiration_year": "2024",
"cvv": "314"
}
}'
However, a user will likely send additional non-mandatory fields as part of their request. To do so, they should populate the override attribute with a body attribute, where the value of the body attribute is a JSON or XML string containing the optional attributes to be sent and their values. Override Documentation
Next Page: Adyen →