Choose Your Package
This demo showcases PayPal Checkout integration with sandbox payments. Use your PayPal sandbox test account to complete payments!
Starter Package
Great for individuals
$19.00
/one-time
- 1 User
- 5GB Storage
- Basic Support
Best Value
Business Package
Perfect for small teams
$49.00
/one-time
- 5 Users
- 50GB Storage
- Priority Support
- Analytics
Agency Package
For growing agencies
$99.00
/one-time
- Unlimited Users
- 500GB Storage
- 24/7 Support
- White Label
- API Access
How It Works
Frontend (JavaScript SDK)
paypal.Buttons({
createOrder: async () => {
const res = await fetch('/create-order', {
method: 'POST',
body: JSON.stringify({ product_id: 'prod_demo_1' })
});
const data = await res.json();
return data.id; // PayPal Order ID
},
onApprove: async (data) => {
// Capture the payment
await fetch('/capture-order', {
method: 'POST',
body: JSON.stringify({ order_id: data.orderID })
});
window.location.href = '/success';
}
}).render('#paypal-button');
Backend (Laravel/PHP)
// Create PayPal Order via REST API
$orderData = [
'intent' => 'CAPTURE',
'purchase_units' => [[
'amount' => [
'currency_code' => 'USD',
'value' => '49.00',
],
]],
];
$response = Http::withToken($accessToken)
->post($baseUrl . '/v2/checkout/orders', $orderData);
return response()->json(['id' => $response['id']]);