Shop/Digital Product/Payment Integration Kit (Stripe & VNPay)
Digital ProductWebhooksPayments

Payment Integration Kit (Stripe & VNPay)

No reviews yet284 views
Status:In stock
Product code:TS-PAYMENT-KIT-EN
Categories:NestJS
Delivery:Download link and license key are emailed immediately after payment.

Idempotent Stripe and VNPay integration for NestJS: signed webhooks, safe retries, and an order state machine that cannot double-charge.

Read the full details further down this page.

Digital delivery guarantee

Download link and license key are emailed immediately after payment.

Try it before you buy

Preview / trial download

A free sample of this product. No purchase needed.

Download preview

Product details

Payment integrations fail in the gap between "the gateway says it worked" and "the order actually reflects it" — this kit closes that gap with an idempotent webhook handler shared across both Stripe and VNPay, keyed on each gateway's own transaction id so a retried webhook is a safe no-op instead of a duplicate charge. Both signature verification paths are implemented against the raw request body, not the parsed JSON, avoiding the re-serialization bug that silently breaks signature checks in hand-rolled implementations. Order status transitions are guarded (`pending → paid`, never `refunded → paid`), so an out-of-order webhook delivery cannot corrupt a settled order. Refunds and partial refunds are covered on both gateways, with the same audit trail pattern used for the original charge, so a support agent can see exactly what happened to an order without querying the gateway dashboard directly.

Customer reviews

Ratings and feedback from verified customers.

Purchased this product?

Log in and purchase this product to share your review.

Product discussion

Reviews & questions