How yaya12085/fusionpay works
FusionPay is a small TypeScript client library for MoneyFusion payments. The primary workflow is an application configuring payment details through the fluent client, submitting them to the gateway, then using a returned token to verify status; users can redirect payers to the gateway URL and handle return or webhook callbacks in their own application. The sampled implementation places configuration, HTTP requests, and response handling in one class. Callback handling and webhook delivery are documented integration capabilities, but are not implemented as library modules in the available source.
Main entry points: FusionPay.ts FusionPay client
Components 6
Client library
- FusionPay client
src/FusionPay.ts
MoneyFusion gateway
- Payment gateway
Integrating application
- Merchant application
- Return callback
- Webhook handler
Other components
- Payer
Connections 9
- Merchant application → FusionPay client: configures payment
- FusionPay client → Payment gateway: POSTs payment data
- Payment gateway → FusionPay client: returns token and URL
- Merchant application → Payer: redirects to gateway
- Payer → Return callback: returns with token
- Return callback → FusionPay client: checks status
- FusionPay client → Payment gateway: fetches status
- Payment gateway → FusionPay client: returns verification
- Payment gateway → Webhook handler: sends payment data