All Projects → recca0120 → payum-ecpay

recca0120 / payum-ecpay

Licence: MIT, MIT licenses found Licenses found MIT LICENSE MIT LICENSE.md
The Payum extension. 綠界金流

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to payum-ecpay

Tsrtc
台灣股票即時爬蟲。Taiwan Stock Exchange Real Time Crawler
Stars: ✭ 359 (+2661.54%)
Mutual labels:  taiwan
Taiwan News Crawlers
Scrapy-based Crawlers for news of Taiwan
Stars: ✭ 83 (+538.46%)
Mutual labels:  taiwan
Ctf
CTF write-ups and some wargame sites write-ups.
Stars: ✭ 157 (+1107.69%)
Mutual labels:  taiwan
Grs
📈 台灣上市上櫃股票價格擷取(Fetch Taiwan Stock Exchange data)含即時盤、台灣時間轉換、開休市判斷。
Stars: ✭ 405 (+3015.38%)
Mutual labels:  taiwan
Pycontw2013tutorial
Python Conference Taiwan 2013 Tutorial
Stars: ✭ 75 (+476.92%)
Mutual labels:  taiwan
Notes
let me know if my notes help you :D (it's a mess, I know)
Stars: ✭ 119 (+815.38%)
Mutual labels:  taiwan
Tsec
台灣上市上櫃股票爬蟲 Taiwan Stock Exchange Crawler
Stars: ✭ 327 (+2415.38%)
Mutual labels:  taiwan
WHMCS-JSJ-API-Pay-Gateway
WHMCS 财务系统对接金莎云免签支付API(你们怎么用,与我无瓜好吧:)
Stars: ✭ 58 (+346.15%)
Mutual labels:  gateway
Livetaiwan
直播地圖
Stars: ✭ 83 (+538.46%)
Mutual labels:  taiwan
Lazy
Kule Lazy4 / CSS Framework
Stars: ✭ 147 (+1030.77%)
Mutual labels:  taiwan
R Notes
Notes for using R language to do data mining and machine learning (Chinese)
Stars: ✭ 25 (+92.31%)
Mutual labels:  taiwan
Tra Info
快速地查詢臺鐵時刻表,沒有廢話。
Stars: ✭ 53 (+307.69%)
Mutual labels:  taiwan
Breach.tw
A service that can track data breaches like "Have I Been Pwned", but it is specific for Taiwan.
Stars: ✭ 144 (+1007.69%)
Mutual labels:  taiwan
Ctf writeup
CTF writeups from Balsn
Stars: ✭ 393 (+2923.08%)
Mutual labels:  taiwan
Weather
Taiwan's Weather Maps! 想查詢每個地方的天氣嗎!?藉由 Google Maps API 的地圖服務,以及中央氣象局網站的天氣預報,讓你快速輕鬆的查詢台灣 368 個鄉鎮的天氣概況!
Stars: ✭ 206 (+1484.62%)
Mutual labels:  taiwan
Singapore
台灣人到新加坡的工作、生活、簽證申請經驗分享
Stars: ✭ 351 (+2600%)
Mutual labels:  taiwan
Tw City Selector
台灣縣市二聯式選單 http://dennykuo.github.io/tw-city-selector
Stars: ✭ 104 (+700%)
Mutual labels:  taiwan
citrix-adc-aws-cloudformation
Citrix ADC (Formerly Netscaler) templates and scripts for AWS deployment
Stars: ✭ 11 (-15.38%)
Mutual labels:  gateway
gateway
A high-performance API Gateway with middlewares, supporting HTTP and gRPC protocols.
Stars: ✭ 520 (+3900%)
Mutual labels:  gateway
Twcommunities
整理與蒐集台灣社群活動投影片
Stars: ✭ 145 (+1015.38%)
Mutual labels:  taiwan

Ecpay

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License Monthly Downloads Daily Downloads Scrutinizer Code Quality Code Coverage

The Payum extension to rapidly build new extensions.

  1. Create new project
$ composer create-project payum-tw/ecpay
  1. Replace all occurrences of payum with your vendor name. It may be your github name, for now let's say you choose: ecpay.
  2. Replace all occurrences of ecpay with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: ecpay.
  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('ecpay', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
        return new \PayumTW\Ecpay\EcpayGatewayFactory($config, $coreGatewayFactory);
    })

    ->addGateway('ecpay', [
        'factory'     => 'ecpay',
        'MerchantID'  => '2000132',
        'HashKey'     => '5294y06JbISpM5x9',
        'HashIV'      => 'v77hoKGq4kWxNNIS',
        'sandbox'     => true,
    ])

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

use Payum\Core\Request\Capture;

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

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

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

Resources

License

Skeleton is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].