const response = await fetch("https://api.payfunc.com/order", { method: "POST", headers: { Authentication: "Bearer <public api key>" } body: JSON.stringify( { "number": "<unique order identifier>", "items": 1337.42, "currency": "EUR", "payment": { "type": "card", "account": "<account id>" } } ) }
By Simon Mika
Introduction to PayFunc and Recruitement.