Skip to content

เติมเงิน Truewallet ด้วยซองอั่งเปา nodejs

License

Notifications You must be signed in to change notification settings

Fortune-Inc/tw-voucher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Truewallet Voucher

เติมเงิน Truewallet ด้วยซองอั่งเปา

ทำไมต้อง tw-voucher

  • ✔️ ฟีเจอร์ครบรองรับทั้งโค๊ดอังเปาและ URL
  • 🔒 มีระบบป้องกันการ inject ในตัว
  • 📦 zero dependencies

Installation

npm i @fortune-inc/tw-voucher

Examples

ตัวอย่างการเติมด้วยโค๊ด

const twvoucher = require('@fortune-inc/tw-voucher');

twvoucher('เบอร์โทรศัพท์', 'xxxxhFog10Ijbmg1c').then(redeemed => {
    console.log(`redeem ซอง ${redeemed.code} ของ ${redeemed.owner_full_name} จำนวน ${redeemed.amount} บาทแล้ว`) 
}).catch(err => {
    console.error('invaild voucher code')
})

ตัวอย่างการเติมด้วย URL

const twvoucher = require('@fortune-inc/tw-voucher');

twvoucher('เบอร์โทรศัพท์', 'https://gift.truemoney.com/campaign/?v=xxxxfhFog10Ijbmg1c').then(redeemed => {
    console.log(`redeem ซอง ${redeemed.code} ของ ${redeemed.owner_full_name} จำนวน ${redeemed.amount} บาทแล้ว`) 
}).catch(err => {
    console.error('invaild voucher code')
})

About

เติมเงิน Truewallet ด้วยซองอั่งเปา nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published