Braintree Payment Gateway Adapter Properties

Set the Braintree Payment Gateway Adapter properties in /opt/mtx/conf/payment-service.yaml.

Braintree Payment Gateway Adapter Properties describes the Braintree Payment Gateway Adapter properties.

Table 1. Braintree Payment Gateway Adapter Properties
Property Name Description Default Value Mandatory
payment.gateway.braintree.configs.default Single configuration. When true, if you attempt to add a payment method and it was already added to the Braintree Vault, the request fails. Yes
payment.gateway.braintree.configs.<config name> Multiple configuration. The <config name> identifies a configuration in addition to the default configuration. You can have any number of additional configurations. For example:
payment:
  gateway:
    braintree:
      configs:
        config1:
        ...
        config2:
        ...
No
payment.gateway.braintree.configs.<config name>. environment This is the Braintree environment. sandbox No
payment.gateway.braintree.configs.<config name>.merchantId This is the Braintree merchant ID. Yes
payment.gateway.braintree.configs.<config name>.publicKey This is the Braintree public key. Yes
payment.gateway.braintree.configs.<config name>.privateKey This is the Braintree private key. Yes
payment.gateway.braintree.configs.<config name>.failOnDuplicatePaymentMethod When true, if you attempt to add a payment method and it was already added to the Braintree Vault, the request fails. false No
payment.gateway.braintree.configs.<config name>.verifyCard Verify the card when adding or updating the payment method. false No
payment.gateway.braintree.configs.<config name>.recurringOverride Sets the Braintree recurring flag. The payment request sent to the Braintree Payment Gateway Provider indicates that this is a recurring payment. No
payment.gateway.braintree.configs.<config name>.partialRefund When the partial refund property is set to true, after the receipt of a refund request, a refund is attempted only if the payment has settled and the refund is a partial refund; otherwise, an error is returned. No
payment.gateway.braintree.configs.<config name>.bypassTokenExchange A temporary token is exchanged for a long-term token. If this happens before Payment Service processing, the Payment Service accepts and stores the token. You can configure the Payment Service to store the token for all messages received by the Payment Gateway Provider or on a per-message basis. No

For more information about Braintree configuration, see the Braintree website.

payment:
  gateway:
    #Braintree Payment Gateway
    braintree:
      configs:
        default:
          environment: sandbox
          merchantId: sw994qcnv99xw42b
          publicKey: d4kj2kry84qj7gpf
          privateKey: bf95fbbe9f6696c93d22e7b28bb34dbb
          recurringOverrideFieldName: RecurringIndicator
          retryOperations : [ 1, 2, 7 ]
          transactionErrors: { 3: [ 2034, 4002 ], 4: [ 2001, 4006 ] }
          # 10 timeout, 8 Server
          transportErrors: [ 10 ]
          # If true the partial refunds are only attempted if the transaction has settled
          partialRefund: true
          bypassTokenExchange: false

        partner:
          environment: sandbox
          merchantId: 23m4jhf4xqqy5mtz
          publicKey: ykbmq5qjwvbv9crq
          privateKey: 0effa8c9e82bdb4267b92c7f210b8dbf
          recurringOverrideFieldName: RecurringIndicator
          retryOperations : [ 1, 2, 7 ]
          transactionErrors: { 3: [ 2034, 4002 ], 4: [ 2001, 4006 ] }
          # 10 timeout, 8 Server
          transportErrors: [ 10 ]
          # If true the partial refunds are only attempted if the transaction has settled
          partialRefund: true
          bypassTokenExchange: false