Skip to content

Commit 00c32da

Browse files
Atanda1chibie
authored andcommitted
fix: update create order endpoint
1 parent db1ef96 commit 00c32da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/sender.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const accountName = "https://api.paycrest.io/v1/verify-account";
8787
const createOrder = "https://api.paycrest.io/v1/sender/orders";
8888
8989
try {
90-
const response = await fetch(accountName, {
90+
const response = await fetch(createOrder, {
9191
method: "POST",
9292
headers: { "Content-Type": "application/json", "API-Key": "208a4aef-1320-4222-82b4-e3bca8781b4b" },
9393
body: JSON.stringify(orderParams)
@@ -215,4 +215,4 @@ Once you deploy your server and get the endpoint, you can listen to payment orde
215215

216216
If pending, your frontend would have to continue pollling till it gets back a conclusive response - either `expired`, `settled`, or `refunded`.
217217

218-
**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.
218+
**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.

0 commit comments

Comments
 (0)