Create a Payment

If you set your dashboard properly, let's get our hands a little bit dirty and jump into coding.

Before sending an API request, you'll need an access token. Grab it from the dashboard's API page, and send it as access-token header.

In order to create a payment, we must send a POST request like this:

axios.post("https://api.payrock.me/create-payment", {
    amount: 5 // USD
}, {
    headers: {
        "access-token": "YOUR_ACCESS_TOKEN"
    }
})

All you have to do is send an amount in USD. Payrock will create a deposit address from one of the zrSign wallets, and convert USD into coin amount.

Last updated