Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/guides/sender.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -215,4 +215,9 @@ 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.
**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)