Composable Frontend 2.0 Learn more 

  • Payments/
    Payment Gateways API/
    Configure Braintree

    Configure Braintree

    PUT Update Braintree settings

    https://useast.api.elasticpath.com/v2/gateways/braintree
    

    Use this endpoint to configure Braintree.

    Parameters

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe Bearer token required to get access to the API.

    Body

    NameRequiredTypeDescription
    enabledOptionalbooleanSpecifies whether the gateway is enabled or disabled. Set true to enable the gateway and false to disable the gateway. Default is false.
    environmentOptionalstringSpecifies production or sandbox environment.
    merchant_idRequiredstringSpecifies Your Braintree merchant ID.
    private_keyRequiredstringRepresents Your Braintree private key.
    public_keyRequiredstringIndicates Your Braintree public key.

    Request Example

    curl -X PUT https://useast.api.elasticpath.com/v2/gateways/braintree \
        -H "Authorization: Bearer XXXX" \
        -H "Content-Type: application/json" \
        -d $ {
          "data": {
            "enabled": true,
            "environment": "production",
            "merchant_id": "xxx",
            "private_key": "xxx",
            "public_key": "xxx",
          }
        }
    

    Response Example

    200 OK

    {
      "data": {
        "enabled": true,
        "environment": "production",
        "merchant_id": "xxx",
        "name": "Braintree",
        "private_key": "xxx",
        "public_key": "xxx",
        "slug": "braintree",
        "type": "gateway"
      }
    }
    
    Previous
    Configure Authorize.net