捐款金流串接 測試頁
供 Ken 串接金流使用。確認 Payload 結構後,點擊按鈕觸發金流。
⚠ 此頁面僅供開發測試測試參數
頻率:每月 金額: NT$ 500
1
個人捐款
donorType: "personal"假資料欄位
| donorType | personal |
| frequency | monthly |
| amount | 500 |
| customAmount | null |
| lastName | 王 |
| firstName | 小明 |
| test.personal@example.com | |
| phone | 0912345678 |
| birthYear | 1985 |
| birthMonth | 6 |
| gender | male |
| country | 台灣 |
| city | 台北市 |
| district | 中山區 |
| address | 民權東路三段35號7樓 |
| receiptType | tax-upload |
| receiptSameAsDonor | false |
| receiptName | 王小明 |
| receiptIdNumber | A123456789 |
| staffNumber | (空字串) |
| note | (空字串) |
| agreeToUpdates | true |
| agreeToPublish | true |
JSON Payload
{
"donorType": "personal",
"frequency": "monthly",
"amount": 500,
"customAmount": null,
"lastName": "王",
"firstName": "小明",
"email": "test.personal@example.com",
"phone": "0912345678",
"birthYear": "1985",
"birthMonth": "6",
"gender": "male",
"country": "台灣",
"city": "台北市",
"district": "中山區",
"address": "民權東路三段35號7樓",
"receiptType": "tax-upload",
"receiptSameAsDonor": false,
"receiptName": "王小明",
"receiptIdNumber": "A123456789",
"staffNumber": "",
"note": "",
"agreeToUpdates": true,
"agreeToPublish": true
}金流觸發區塊
// Ken :在下方按鈕綁定 @click 事件,接入金流 API
2
公司 / 機構捐款
donorType: "company"📌 公司捐款欄位說明:
lastName/firstName— 填寫聯絡人姓名receiptName— 填寫公司 / 機構全名(收據抬頭)receiptIdNumber— 填寫統一編號(8碼)或負責人身分證字號note— 可附加備註,例如統一編號
假資料欄位
| donorType | company |
| frequency | monthly |
| amount | 500 |
| customAmount | null |
| lastName | 陳 |
| firstName | 大文 |
| contact@company-example.com | |
| phone | 0922333444 |
| birthYear | 1975 |
| birthMonth | 3 |
| gender | male |
| country | 台灣 |
| city | 台北市 |
| district | 信義區 |
| address | 信義路五段7號89樓 |
| receiptType | paper-mail |
| receiptSameAsDonor | false |
| receiptName | 台灣愛心有限公司 |
| receiptIdNumber | B223456789 |
| staffNumber | (空字串) |
| note | 統一編號:12345678 |
| agreeToUpdates | true |
| agreeToPublish | true |
JSON Payload
{
"donorType": "company",
"frequency": "monthly",
"amount": 500,
"customAmount": null,
"lastName": "陳",
"firstName": "大文",
"email": "contact@company-example.com",
"phone": "0922333444",
"birthYear": "1975",
"birthMonth": "3",
"gender": "male",
"country": "台灣",
"city": "台北市",
"district": "信義區",
"address": "信義路五段7號89樓",
"receiptType": "paper-mail",
"receiptSameAsDonor": false,
"receiptName": "台灣愛心有限公司",
"receiptIdNumber": "B223456789",
"staffNumber": "",
"note": "統一編號:12345678",
"agreeToUpdates": true,
"agreeToPublish": true
}金流觸發區塊
觸發記錄
尚未觸發任何金流
TapPay Sandbox
輸入 4242... 測試卡號