PHP code example of platocreative / commerce-payment-express
1. Go to this page and download the library: Download platocreative/commerce-payment-express library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
platocreative / commerce-payment-express example snippets
use platocreative\paymentexpress\gateways\PxPay;
use platocreative\paymentexpress\events\CreateGatewayEvent;
use yii\base\Event;
Event::on(
PxPay::class,
PxPay::EVENT_BEFORE_CREATE_GATEWAY,
function(CreateGatewayEvent $event) {
// $event->gateway is Omnipay::create();
// e.g. $event->gateway->setUsername()
}
);