Forward API

availability

Use of the production Forward API is subject to eligibility. Contact your Account Manager for more information or submit an inquiry to our Business Development team.

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

Usageanchor

Here are some of the example calls to the endpoints:

  1. 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

note

Any data sent to us this way appear in our logs. Users should refrain from sending us sensitive data and customer PII.


Next Page: Adyen