2017 © Pedro Peláez
 

project mypay

The Payum extension. MyPay金流

image

payum-tw/mypay

The Payum extension. MyPay金流

  • Tuesday, February 13, 2018
  • by recca0120
  • Repository
  • 1 Watchers
  • 3 Stars
  • 123 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 6 Forks
  • 0 Open issues
  • 14 Versions
  • 76 % Grown

The README.md

Mypay

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License Monthly Downloads Daily Downloads Scrutinizer Code Quality Code Coverage, (*1)

The Payum extension to rapidly build new extensions., (*2)

  1. Create new project
$ composer create-project payum-tw/mypay
  1. Replace all occurrences of payum with your vendor name. It may be your github name, for now let's say you choose: acme.
  2. Replace all occurrences of mypay with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: mypay.
  3. Register a gateway factory to the payum's builder and create a gateway:
<?php

use Payum\Core\PayumBuilder;
use Payum\Core\GatewayFactoryInterface;

$defaultConfig = [];

$payum = (new PayumBuilder)
    ->addGatewayFactory('mypay', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
        return new \PayumTW\Allpay\AllpayGatewayFactory($config, $coreGatewayFactory);
    })

    ->addGateway('mypay', [
        'factory' => 'mypay',
        'MerCode' => null,
        'MerKey'  => null,
        'MerName' => null,
        'Account' => null,
        'sandbox' => true,
    ])

    ->getPayum()
;
  1. While using the gateway implement all method where you get Not implemented exception:
<?php

use Payum\Core\Request\Capture;

$mypay = $payum->getGateway('mypay');

$model = new \ArrayObject([
  // ...
]);

$mypay->execute(new Capture($model));

Resources

License

Skeleton is released under the MIT License., (*3)

The Versions

20/10 2016

v1.0.2

1.0.2.0 http://payum.org

The Payum extension. Rapid extensino development

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim
by Recca Tsai

payment

22/09 2016

v1.0.1

1.0.1.0 http://payum.org

The Payum extension. Rapid extensino development

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim
by Recca Tsai

payment

11/09 2016

v1.0

1.0.0.0 http://payum.org

The Payum extension. Rapid extensino development

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kotlyar Maksim
by Recca Tsai

payment