Coder Social home page Coder Social logo

andy6804tw / ecpay-payment-demo Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 2.0 904 KB

綠界金流付款測試介面

Home Page: https://ecpay-payment.herokuapp.com/ecpay/get?total=4200&item=山茶 CAMELLA 85T 前打捲線器&name=王小明&address=台中市&[email protected]&note=無

License: MIT License

JavaScript 96.97% HTML 3.03%
ecpay payment atm

ecpay-payment-demo's Introduction

GitHub license

綠界金流介接測試

API

路徑(Router)

1. 結帳頁面(網頁跳轉夾帶值方法)

方法: GET

說明: 經由綠界取得收付款服務(網頁跳轉夾帶值方法)

路徑: https://ecpay-payment.herokuapp.com/ecpay/get?total=消費總金額&item=購買商品&name=購買者姓名&address=寄送地址&email=購買者信箱&note=商品備註

2. 結帳頁面(表單傳送方法)

方法: POST

說明: 經由綠界取得收付款服務(表單傳送方法)

路徑: https://ecpay-payment.herokuapp.com/ecpay

  • Parameters (body):
// form-data

total: 4200
item: 山茶 CAMELLA 85T 前打捲線器
name: 王小明
address: 台中市
email: [email protected]
note: 無

範例測試

3. 查詢訂單

方法: GET、POST

說明: 使用訂單編號做訂單查詢

路徑: https://ecpay-payment.herokuapp.com/ecpay/queryTradeInfo/訂單編號

參考文件

功能(Feature)

  • 付款方式
    • 信用卡
    • 網路 ATM
    • ATM 櫃員機
    • 超商條碼
    • 超商代碼

信用卡付款

1. 輸入信用卡資訊及手機號碼
  • 信用卡測試卡號
卡號: 4311-9522-2222-2222 (注意:只有此組卡號可測試交易成功流程)

安全碼: 222

有效月/年: 輸入的 MM/YYYY 值請大於現在當下時間的月年,例如在 2016/04/20 當天作測試,請設定 05/2016(含)之後的有效月年,否則回應刷卡失敗。

2. 刷卡簡訊驗證

Note: 每組簡訊驗證碼有效期限10分鐘

3. 付款成功

付款成功後會顯示成功頁面,且付款驗證同時會進入 ReturnURLOrderResultURL 做 callback 動作,開發者必須自定義 callback 內容。

網路 ATM

  • 網路銀行

    • 兆豐國際商銀、台灣土地銀行、新光銀行、永豐銀行、台灣銀行、國泰世華銀行、中國信託、玉山銀行、第一銀行、台北富邦、台新銀行、其他金融機構。

Note:若使用其他金融機構進行轉帳,可至任一銀行之櫃員機操作,另須支付跨行手續費 15 元。

LICENSE

MIT

ecpay-payment-demo's People

Contributors

andy6804tw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.