Payrock
  • Welcome
  • What is Payrock?
  • How it Works?
  • Development Docs
    • Get Started
    • Setting up Dashboard
    • Creating Wallets
    • Create a Payment
    • Get Payment Status
Powered by GitBook
On this page
  1. Development Docs

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.

PreviousCreating WalletsNextGet Payment Status

Last updated 9 months ago