← 返回
开发者工具 Key 中文

wooshpay-api

WooshPay Payment Gateway Integration. For creating payments, checking order status, processing refunds, and managing checkout sessions. Use scenarios: - Crea...
WooshPay支付网关集成,用于创建支付、检查订单状态、处理退款及管理结账会话。
wp-ai-dev
开发者工具 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 1
Stars
📥 667
下载
💾 8
安装
1
版本
#latest

概述

WooshPay Payment Management

Quick Start

1. Get Your API Key

Please refer to the official documentation: https://docs.wooshpay.com/3647644m0

2. Set API Key

export WOOSHPAY_API_KEY="your_base64_encoded_api_key"

Get your API Key from WooshPay merchant dashboard (Base64 encoded).

3. Use the Scripts

Supported Operations

1. Create Payment Intent

Create a payment and get direct channel payment URL (e.g., MoMo, VCB bank).

python3 scripts/create_payment.py

Interactive input: amount, currency, payment method, buyer info, return URL.

Returns: Direct payment URL for the selected channel.

2. Create Checkout Session

Create a hosted checkout page where customers can select payment method.

python3 scripts/create_checkout.py

Interactive input: product name, description, price, currency, quantity, payment methods, success/cancel URLs.

Returns: WooshPay checkout URL to send to customer.

3. Query Order Status

Check payment status by order ID.

python3 scripts/get_payment.py

Input: Payment Intent ID (pi_xxxxxx).

4. Process Refund

Initiate a refund for a completed payment.

python3 scripts/refund.py

⚠️ Note: Not all payments support refunds. Please confirm with WooshPay support first.

Interactive input: Payment Intent ID, refund reason, amount (optional, default = full refund).

5. Cancel Order

Cancel an unpaid payment order.

python3 scripts/cancel_payment.py

Supported Payment Methods

For the complete list of supported payment methods, please refer to:

https://docs.wooshpay.com/3948703m0

Common Payment Methods

MethodRegionType
----------------------
momoVietnamWallet
vietcombankVietnamBank
zaloVietnamWallet
shopeepayVietnam/SEAWallet
atomeSEABuy Now Pay Later
touchngoMalaysiaWallet
gopayIndonesiaWallet
ovoIndonesiaWallet
alipayChinaWallet
alipay_hkHong KongWallet
wechat_payChinaWallet
kakao_paySouth KoreaWallet
danaIndonesiaWallet
boostMalaysiaWallet
grabpaySEAWallet
gcashPhilippinesWallet
true_moneyThailandWallet
union_payChinaCard
visaGlobalCard
mastercardGlobalCard
bancontactEuropeBank Redirect
idealEuropeBank Redirect
klarnaEuropeBuy Now Pay Later

Supported Currencies

VND, USD, MYR, CNY, EUR, GBP, THB, SGD, IDR, HKD, KRW, PHP, and more.

See: https://docs.wooshpay.com/2447438m0

Order Status

StatusDescription
---------------------
requires_payment_methodWaiting for payment
requires_confirmationPending confirmation
requires_actionRequires action
processingProcessing
succeededPayment succeeded
canceledCanceled
failedFailed

Refund Reasons

ReasonDescription
---------------------
requested_by_customerCustomer requested refund
duplicateDuplicate charge
fraudulentFraudulent transaction
requested_by_merchantMerchant requested refund

Important Notes

  • Amount is in smallest currency unit (e.g., VND = cents, USD = cents)
  • Currency codes are uppercase (ISO 4217)
  • API Key must be Base64 encoded
  • Not all payments support refunds - check with WooshPay first

API Documentation

  • Getting Started: https://docs.wooshpay.com/3647644m0
  • Payment Methods: https://docs.wooshpay.com/3948703m0
  • Supported Currencies: https://docs.wooshpay.com/2447438m0

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 22:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,726
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,837
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,786