lyrasoft / shopgo-ecpay
ShopGo Ecpay package
Installs: 593
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 3
Type:shopgo-package
Requires
- ecpay/sdk: ^1.2
README
Installation
Install from composer
composer require lyrasoft/shopgo-ecpay
Register to shopgo config:
use Lyrasoft\ShopGo\Ecpay\EcpayPayment; use Lyrasoft\ShopGo\Ecpay\EcpayShipping; return [ //... 'shipping' => [ 'types' => [ // ... 'ecpay' => EcpayShipping::class, // <-- Add this ] ], 'payment' => [ 'types' => [ // ... 'ecpay' => EcpayPayment::class, // <-- Add this ] ],
Session
As ShopGo may need to redirect to outside Payment service to process checkout, you must disable SameSite
cookie policy
and set secure
as TRUE
.
// etc/packages/session.php return [ 'session' => [ // ... 'cookie_params' => [ // ... 'secure' => true, // <-- Set this to TRUE // ... 'samesite' => CookiesInterface::SAMESITE_NONE, // Set this to `SAMESITE_NONE` ],