Square
The Square gateway supports online subscription billing via the Square Subscriptions API and Square Web Payments SDK.Configuration
Environment variables
SQUARE_SANDBOX=true to use the Square sandbox environment.
Webhooks
Configure a webhook subscription in the Square Developer Dashboard. Set the notification URL tohttps://yourapp.com/subscribd/webhook/square and enable:
subscription.createdsubscription.updatedsubscription.canceledsubscription.expiredinvoice.payment_madeinvoice.payment_failedpayment.completedpayment.failed
SQUARE_WEBHOOK_SIGNATURE_KEY.
Limitations
interval_countmust be1. Square 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.
Next steps
- Custom Gateways — Build your own gateway driver
- Webhooks — Full webhook reference