Coder Social home page Coder Social logo

ecpay's Introduction

台灣綠界金流範例

環境

綠界官方建議:

  • node-v6.11.0-x64 以上
  • ECMA Script6
  • npm install ecpay_aio_nodejs

安裝及運行

  1. 建立環境變數

將 .env.sample 轉為 .env 檔案,並按照需求填入

  1. 終端機輸入:
npm install
npm start

並直接開啟服務就會轉址至綠界金流

專案檔案說明

檔案路徑 用途 備註
.env | .env.sample 環境變數 | 環境變數範例檔案
/routes/index.js 主要金流範例檔案
/views/index.ejs 入口前端檔案 啟動後,只要進入本頁面會直接觸發金流轉址
/views/return.ejs 交易完成的回傳頁面
/public/returnTest.html 交易完成,測試回傳用的請求頁面(可自行依據條件調整欄位內容)

參考

ecpay

ecpay's People

Contributors

peg-l avatar

Watchers

 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.