lyrasoft/shopgo-ecpay

ShopGo Ecpay package

Installs: 594

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 3

Type:shopgo-package

1.0.13 2023-08-07 09:45 UTC

This package is auto-updated.

Last update: 2024-12-07 12:28:53 UTC


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`
        ],