Braintree
The Braintree gateway supports card payments, PayPal via Braintree, and Venmo in markets where available. It is a separate package dependency — installbraintree/braintree_php to use it.
Install the Braintree SDK
Configuration
Environment variables
BRAINTREE_ENV=sandbox for development and testing.
Webhooks
Registerhttps://yourapp.com/subscribd/webhook/braintree as a webhook endpoint in the Braintree Control Panel. Enable:
subscription_charged_successfullysubscription_charged_unsuccessfullysubscription_canceledsubscription_expiredsubscription_trial_endedsubscription_went_past_duesubscription_went_active
Limitations
interval_countmust be1. Braintree does not support billing cycles withinterval_count > 1. Subscribd throwsSubscriptionExceptionif you attempt to create a subscription on a plan withinterval_count > 1using this gateway.- Trial extension is not supported natively.
ExtendTrialupdates the localtrial_ends_atonly. - Proration is handled by Subscribd’s built-in
ProrationEngine. - Pausing is not supported natively. Subscribd updates the local status only; billing at Braintree continues until the subscription is canceled.