Braintree

Link a merchant's Braintree account to process credit card and ACH transactions and send dynamic descriptors through Preczn.

Overview

Preczn routes card, ACH, Apple Pay, and Google Pay payments to each merchant's own Braintree account. Each merchant brings its own Braintree credentials, and Preczn doesn't board merchants to Braintree.

Merchant onboarding

CapabilitySupportedDetails
Merchant onboarding✗ No
Onboarding through the API✗ No
Merchant import✗ No

Transactions

CapabilitySupportedDetails
Card transactions✓ YesJump to Processing transactions
Apple Pay transactions✓ YesJump to Wallets
Google Pay transactions✓ YesJump to Wallets
ACH transactions✓ YesSee Braintree ACH
Transaction import✗ No

Tokens and lending

CapabilitySupportedDetails
Token migration✗ No
Lending✗ No

Linking existing credentials

Each merchant processes with its own Braintree account, so you link that account's API credentials to the merchant's Braintree connection. Add Braintree to your platform first. It takes no platform credentials. See Add a connection to your platform. A merchant has one connection for each processor. For a business with two Braintree accounts, see Use two accounts at one provider.

You need three values from the merchant's Braintree Control Panel: the merchant ID, the public key, and the private key. All three are required.

Choose how you'll link the account. Select the Dashboard tab or the API tab.

  1. In Merchant Vault, open the merchant.
  2. Under Connections, select Braintree.
  3. Click Edit, and enter the values in Merchant ID, Public Key, and Private Key.
  4. Click Verify connection. The drawer shows Credentials successfully verified if Braintree accepts them, and Verification failed otherwise.
  5. Click Save changes.

Preczn checks all three values with Braintree, in the Braintree sandbox in Test mode and in Braintree production in Live mode.

To link many merchants at once, fill in the Braintree_mid, Braintree_public_key, and Braintree_private_key columns of the merchant import CSV file. See Import merchants.

Braintree doesn't send Preczn webhooks until you add one in the merchant's Braintree Control Panel. ACH payments need it. See Braintree ACH.


Processing transactions

Preczn processes the following transaction types through Braintree. For each type, see Choose a transaction type.

  • Cards: sale, auth, capture, refund, void, and verify. A card verify places a $1.00 authorization.
  • ACH: sale, refund, and verify. Braintree needs a verify before the first sale on each bank account. See Braintree ACH.
  • Wallets: Apple Pay and Google Pay card payments. See the Wallets section.

Braintree accepts only US dollars through Preczn. A card payment in any other currency returns Error with Currency code not supported.

Synchronous and asynchronous outcomes

Card transactions return Approved or Declined right away. If Braintree rejects a request, such as a refund of a transaction that hasn't settled, Preczn returns Error with Braintree's message. ACH sales return Pending until Braintree settles them. See Braintree ACH and Handle synchronous and asynchronous results.

Wallets

Preczn decrypts each Apple Pay and Google Pay payment before it sends the payment to Braintree.

  • Apple Pay always carries a network token, so Braintree receives the payment as Apple Pay.
  • Google Pay carries either a network token or the card number, and Google and the card issuer decide which. Preczn sends a network token to Braintree as Google Pay. It sends a card number as a standard card payment, with no Google Pay label.

Preczn returns every Google Pay transaction with the Google Pay wallet type, even when Braintree shows it as a regular card payment.

Data sent to Braintree

Preczn sends the following values with limits or changes:

  • Order. Preczn sends order as the Braintree order ID.
  • Dynamic descriptor. Preczn sends merchantInfo.name as the Braintree descriptor name on a sale, auth, or verify. Other merchantInfo fields aren't sent. See Add a dynamic statement descriptor.
  • Not sent. Preczn doesn't send description, metadata, card-on-file flags, or Level II and Level III data to Braintree.

AVS and CVV

A card sale, auth, or verify returns AVS and CVV results when Braintree includes them. Send the billing address and cvv to get a meaningful result. See Card verification results.


Testing in test mode

In Test mode, Preczn sends payments to the Braintree sandbox. Link each test merchant with credentials from a Braintree sandbox account. Use the Preczn test cards, which Preczn maps to Braintree's test cards. See Test data and Live vs. test mode. For ACH test values, see Braintree ACH.


FAQ

Why did a card refund return an Error?

Braintree refunds only a settled transaction. Before the transaction settles, void it instead. Preczn returns Braintree's message with the Error status.

Why did my payment return "Currency code not supported"?

Braintree accepts only US dollars through Preczn. Send currency as USD, or leave it out.

Why does a Google Pay payment show as a card payment in Braintree?

Google Pay sent the card number, not a network token, so Preczn sent Braintree a standard card payment. Preczn still returns the transaction as Google Pay. See the Wallets section.


Did this page help you?