How to Build a Custom Checkout with Laravel and FuturePay REST API v2

How to Build a Custom Checkout with Laravel and FuturePay REST API v2

Laravel is the framework of choice for modern web applications in Bangladesh. In this technical walkthrough, we build a full checkout workflow from invoice generation to callback verification using FuturePay's REST API v2.

1. Installing the Controller

Download laravel.zip from the FuturePay Developer Portal and extract RegistrationPaymentController.php into your app/Http/Controllers/ folder.

2. Configuring Services

In your config/services.php, add your FuturePay configuration:

'futurepay' => [
    'api_key'    => env('FUTUREPAY_API_KEY'),
    'create_url' => 'https://payment.futureitlab.com/api/payment/create',
    'verify_url' => 'https://payment.futureitlab.com/api/payment/verify',
],

Your application now has full automated checkout capabilities with sub-second callbacks.

Automate Your Payments with FuturePay

Zero transaction cuts. Sub-second SMS synchronization. Compatible with bKash, Nagad, Rocket, Upay, and dynamic Bangla QR.