faas-xendit-th

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i faas-xendit-th

Weekly Downloads

0

Version

0.1.0

License

none

Unpacked Size

70.4 kB

Total Files

27

Last publish

Collaborators

  • heycalmdown