Skip to content

lambdaterms/purescript-tpay-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescrit-tpay-example

Install

This example (like purescript-tpay) depends on [decimal.js][decimal.js] so you need to install it (possibly by just running npm install).

Usage

Configuration

To run this application you need your tpay id (your login id) and tpay code (on the bottom of the page in secure.tpay.com: Ustawienia → powiadomienia). You should also turn on "testing" payments there: Ustawienia → tryb testowy.

Probably the easiest way to test payment flow from local machine is to use serveo.net:

$ ssh -R 80:localhost:3000 serveo.net

Copy domain which is printed on the console to this command:

$ nodemon server.js -- --tpay-id $TPAY_ID --tpay-secret $TPAY_CODE --base-url $DOMAIN

Open a browser and test your payment workflow.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published