faas-xendit-th
v0.1.0
Published
We decided to duplicate this from `faas-xendit` despite the risks of code duplication for achieving better state isolation. `faas-xendit-th` integrates [New Payments API](https://developers.xendit.co/api-reference/#payments-api), and the rest will be the
Downloads
1
Readme
faas-xendit-th
We decided to duplicate this from faas-xendit
despite the risks of code duplication for achieving better state isolation. faas-xendit-th
integrates New Payments API, and the rest will be the exact same with faas-xendit
.
sequenceDiagram
participant User
participant faas
participant Xendit
participant SNS
participant SQS
participant EventHandler
participant MainAPI
faas->>Xendit: Create Payment Request
Xendit-->>User: Proceed Payment
Xendit->>faas: HTTP Callback (Webhook)
faas->>SNS: Fire Payment Paid Event
SNS->>SQS: Queue Event
SQS->>EventHandler: Dequeue Event
EventHandler->>MainAPI: Patch Paid Status
MainAPI-->>EventHandler: Retry if Failed
Requires
- node v18.x for native
fetch