0.1.0 • Published 7 months ago

faas-xendit-th v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

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