Paddle¶
Paddle is a Merchant of Record platform for software and digital products. This driver targets Paddle Billing: products and prices define what is sold, transactions represent checkout/payment, and subscriptions handle recurring billing.
Setup¶
PADDLE_API_KEY=your_api_key
PADDLE_CLIENT_TOKEN=your_client_token
PADDLE_WEBHOOK_SECRET=your_notification_secret
PADDLE_CURRENCY=USD
PADDLE_BASE_URL=https://api.paddle.com
PADDLE_CALLBACK_URL=https://example.com/payment/return
Use Paddle's sandbox API base and sandbox credentials when testing. The driver authenticates server requests with the API key. The client token is for your client-side Paddle checkout setup; do not use it in place of the server API key.
Create a transaction¶
use Alphabalex\PaymentMadeEasy\Facades\Payment;
$transaction = Payment::driver('paddle')->initializePayment([
'amount' => 29.99,
'currency' => 'USD',
'description' => 'Pro plan',
'email' => 'customer@example.com',
'reference' => 'ORDER_123',
'callback_url' => 'https://example.com/payment/return',
]);
// Redirect to data.authorization_url (the Paddle hosted checkout URL).
// Verify the transaction server-side or use the verified webhook.
You can also provide a Paddle price_id and quantity or explicit items. Amounts are passed in major units; conversion to provider minor-unit strings is handled internally.
Plans, subscriptions, and payment links¶
The shared interfaces are payment, subscription, and payment link. Package plans map to Paddle Prices, recurring subscriptions map to Paddle Subscriptions, and payment links are Paddle-hosted links. Catalog setup and account product permissions remain provider-managed.
Webhooks¶
Configure POST /webhooks/payment-gateways/paddle and set the endpoint's notification secret in PADDLE_WEBHOOK_SECRET. Paddle signs the raw request using its Paddle-Signature timestamp/HMAC format; preserve the raw body and enable signature verification. See webhook handling.
See Paddle in the API reference for plans, subscriptions, and payment-link examples. Related: configuration · gateway directory.