git clone https://github.com/Arifpay-net/Laravel-5.4-and-up-Sample
cd ./Laravel-5.4-and-up-Sample
Assuming you already installed composer and <= php8.1. run composer install
composer install
Change your-api-key
with your test key you created in your dashboard. Arifpay Dashboard
...
Route::get('/test', function (Request $request) {
$arifpay = new Arifpay('your-api-key');
...
});
// and
php artisan serve
We have provided the test collection in postman. you can Try it now.
The create
route will create a test session and returns a session id
and a payment url
. you can then pass this id to fetch
route and you will get the session object you created. you can also check out go to the payment url
with browser of your choice and you will get the checkout page.
Feel free to tweak and test this sample to get familiarly with our API. And submit an issue on github if you face any problem.