Skip to main content

Documentation Index

Fetch the complete documentation index at: https://86d.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

The Braintree module implements the PaymentProvider interface from @86d-app/payments against Braintree’s GraphQL and REST APIs. The webhook endpoint verifies signatures and emits payment.completed on transaction_settled. Source: modules/braintree · npm: @86d-app/braintree

Installation

86d module add braintree payments

Configuration

braintree({
  merchantId: "...",
  publicKey: "...",
  privateKey: "...",
  sandbox: "true"
});
See Environment variables for the BRAINTREE_* variables.

Webhook setup

In the Braintree Control Panel, go to Settings -> Webhooks and create a webhook for transaction_settled and transaction_settlement_declined pointing at:
POST https://your-store.com/api/braintree/webhook