From 00c32da5df61d996e130f4ba04952332ac7c959a Mon Sep 17 00:00:00 2001 From: David Atanda Date: Fri, 28 Mar 2025 12:17:37 +0100 Subject: [PATCH 1/2] fix: update create order endpoint --- docs/guides/sender.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/sender.md b/docs/guides/sender.md index 67c76e7..474f8d0 100644 --- a/docs/guides/sender.md +++ b/docs/guides/sender.md @@ -87,7 +87,7 @@ const accountName = "https://api.paycrest.io/v1/verify-account"; const createOrder = "https://api.paycrest.io/v1/sender/orders"; try { - const response = await fetch(accountName, { + const response = await fetch(createOrder, { method: "POST", headers: { "Content-Type": "application/json", "API-Key": "208a4aef-1320-4222-82b4-e3bca8781b4b" }, body: JSON.stringify(orderParams) @@ -215,4 +215,4 @@ Once you deploy your server and get the endpoint, you can listen to payment orde If pending, your frontend would have to continue pollling till it gets back a conclusive response - either `expired`, `settled`, or `refunded`. -**P.S**: This backend structure can be done in any custom way depending on your app as long as the webhook validates and stores the correct payload sent to it. \ No newline at end of file +**P.S**: This backend structure can be done in any custom way depending on your app as long as the webhook validates and stores the correct payload sent to it. From ef0979dfb96f1e70a918918cd325402f05ba99eb Mon Sep 17 00:00:00 2001 From: ekene leonard Date: Sat, 29 Mar 2025 09:20:41 +0100 Subject: [PATCH 2/2] update docs --- docs/guides/sender.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/guides/sender.md b/docs/guides/sender.md index 474f8d0..f6181d3 100644 --- a/docs/guides/sender.md +++ b/docs/guides/sender.md @@ -216,3 +216,8 @@ Once you deploy your server and get the endpoint, you can listen to payment orde If pending, your frontend would have to continue pollling till it gets back a conclusive response - either `expired`, `settled`, or `refunded`. **P.S**: This backend structure can be done in any custom way depending on your app as long as the webhook validates and stores the correct payload sent to it. + +## Tutorial +- [Building a Payment App with Next.js and Sender API for Off-Ramping USDT to Nigerian Naira +](https://www.dropbox.com/scl/fi/623tezxwdkklvyps4tj77/Tutorial_-Building-a-Payment-App-with-Next.js-and-Sender-API-for-Off-Ramping-USDT-to-Nigerian-Naira.paper?dl=0&rlkey=aqjefcjn4s1f45qltuqvbbd1v&st=mu56n7js) +- [Video walkthrough of the Demo App](https://www.dropbox.com/scl/fi/fn1n1qfuyvxqgj7ohimzx/Screencast-from-2025-03-28-18-16-39-1.mp4?rlkey=jw180krj8mbme6wehl6nhvgxs&e=1&dl=0)