@usefin/plugin-payments
v0.1.0
Published
Payments & Payment Processing (non-Stripe) provider plugins for fin CLI
Downloads
101
Readme
@usefin/plugin-payments
Payments & Payment Processing provider plugins for the fin CLI (non-Stripe). Only supported (GA) providers are exposed (Adyen, Square, Braintree). List, get, create, update, delete where the API supports them; use --data '{"key":"value"}' for create/update. Mock fallback when unauthenticated.
Installation
Included when you install the main usefin CLI. As a dependency: pnpm add @usefin/plugin-payments @usefin/cli
Auth setup
Providers use API key or OAuth2. Example:
usefin auth:login razorpay --api-key YOUR_KEY
usefin auth:login square --interactive
usefin auth:status
usefin doctorUsage
Objects: transactions, payouts, refunds. All commands support --json, --csv, --limit, --dry-run, --audit, --verbose. Create and update require the --data flag (JSON body).
| Example |
|--------|
| usefin adyen:transactions:list --json |
| usefin square:refunds:list --limit 5 |
| usefin square:refunds:get ref_xxx |
| usefin square:refunds:create --data '{"payment_id":"pay_xxx"}' |
| usefin square:transactions:update <id> --data '{}' |
| usefin adyen:transactions:delete <id> (where supported) |
Providers (31)
Razorpay, Adyen, Airwallex, Checkout.com, Mollie, PagSeguro, Square, Xendit, Braintree, Clover, Onafriq, Paytm, Rapyd, Klarna, Affirm, Afterpay, Naver Pay, PayU, Payfast, Payoneer, Pesapal, Telr, Worldpay, dLocal, 2Checkout, AsiaPay, Global Payments, Authorize.Net, Fiserv, DPO Group, TSYS.
