sayeed/sslwireless
Composer 安装命令:
composer require sayeed/sslwireless
包简介
This is payment gateway of SSL Wireless. You can use if for getting payment for your online product.
README 文档
README
This is payment gateway of SSL Wireless. You can use if for getting payment for your online product
Installation
You can start it from composer. Go to your terminal and run this command from your project root directory.
composer require sayeed/sslwireless
Wait for a while, its download.
Configurations
After complete installation then you have to configure it. First copy these line paste it in config/app.php where providers array are exists.
Sayeed\Sslwireless\SslwirelessServiceProvider::class,
Run your application and goto below url for create config
{your_domain}/sayeed/sslwareless
Its done.
How does it work?
At first change your configuration in Config/sayeed.php with api_url, store_id, store_passwd, currency, success_url, fail_url, cancel_url
return [ 'sslwireless' => [ 'connection' => [ 'api_url' => 'https://sandbox.sslcommerz.com/gwprocess/v3/api.php', #required 'store_id' => '123456789', #required 'store_passwd' => '123456789@ssl', #required 'currency' => 'BDT', #required 'success_url' => 'http://localhost/success', #required 'fail_url' => 'http://localhost/fail', #required 'cancel_url' => 'http://localhost/cancel', #required ] ] ];
Usages
$ssl_payment = new Sslwireless('connection'); $products[0]['product'] = 'Product Name 1'; $products[0]['amount'] = 150; $products[1]['product'] = 'Product Name 2'; $products[1]['amount'] = 100; $products[2]['product'] = 'Product Name 3'; $products[2]['amount'] = 250; $ssl_payment->payment_by_sslwireless($products, $unique_transaction_id = false);
If you have any kind of query, please feel free to share with me
Thank you
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-10