Download the PHP package parkwayprojects/laravel-paywithbank3d without Composer
On this page you can find all versions of the php package parkwayprojects/laravel-paywithbank3d. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download parkwayprojects/laravel-paywithbank3d
More information about parkwayprojects/laravel-paywithbank3d
Files in parkwayprojects/laravel-paywithbank3d
Package laravel-paywithbank3d
Short Description A Laravel Package for working with PayWithBank3D
License MIT
Homepage https://github.com/parkwayprojects/laravel-paywithbank3d
Informations about the package laravel-paywithbank3d
PayWithBank3D Laravel Package
A Laravel Package For Working With PayWithBank3D Seamlessly
Installation
You can install the package via composer:
If you use Laravel >= 5.5 you can skip this step and go to
configuration
Parkwayprojects\PayWithBank3D\PayWithBank3DServiceProvider::class
Also, register the Facade like so:
Configuration
You can publish the configuration file using this command:
A configuration-file named paywithbank3d.php
with some sensible defaults will be placed in your config
directory:
Usage
Open your .env file and add your PayWithBank3D public key, PayWithBank3D secret key, PayWithBank3D mode which by default is live, live url , and test url like so:
Set up routes and controller methods like so:
OR
OR
Let me explain the fluent methods this package provides a bit here.
A sample form will look like so:
When clicking the submit button the customer gets redirected to the PayWithBank3D site.
So now we've redirected the customer to PayWithBank3D. The customer did some actions there (hopefully he or she paid the order) and now gets redirected back to our site.
A Request is sent to our callback url (we don't want imposters to wrongfully place non-paid order).
In the controller that handles the request coming from the payment provider, we have
PayWithBank3D::getData()
- This function does the calculation and ensure it is a valid transaction else it throws an exception.
Credits
- Paul Edward
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-paywithbank3d with dependencies
illuminate/support Version ~6|~7|~8
guzzlehttp/guzzle Version 6.*|7.*
ext-json Version *