mannv / appotapay by anhmantk

Integrate appotapay into lumen
23
0
1
Package Data
Maintainer Username: anhmantk
Maintainer Contact: man.nv@kayac.vn (Ha Anh Man)
Package Create Date: 2017-01-20
Package Last Update: 2017-01-23
Language: PHP
License: MIT
Last Refreshed: 2024-11-30 15:11:02
Package Statistics
Total Downloads: 23
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Integrate appotapay to lumen or laravel

Installation

  1. Run

    composer require kayac/appotapay
    
  2. Add service provider into config/app.php file.

For laravel: config/app.php

Kayac\AppotaPay\AppotapayServiceProvider::class

For lumen: bootstrap/app.php

$app->register(\Kayac\AppotaPay\AppotapayServiceProvider::class);
$app->configure('appotapay');
  • add config to .env
#appota pay config
APPOTA_VERSION=v1
APPOTA_LANG=vi
APPOTA_SECRET_KEY=kBMSHd9gCOF6o8qi
APPOTA_API_KEY=A180326-1CLONJ-F8630E75A39ACE88
APPOTA_APP_URL=https://api.appotapay.com/
APPOTA_SANDBOX=true

3 . publish appotapay.php to config folder

php artisan vendor:publish --provider="Kayac\AppotaPay\AppotapayServiceProvider" --tag=config

or copy file /vendor/kayac/appotapay/config/appotapay.php to config folder

##Author Hà Anh Mận

##Document Document appotapay

https://appotapay.com/Docs