Getting Started
Crypto Checkout Quick Start
3 min
this document give a quick tour of how to create a crypto checkout order and receive payment from user crypto checkout order this api creates a payin order and returns a website url the website returned can be loaded in a browser this provides users with a dynamicly generated qr code which users can use to deposit digital assets once the user has done the payment, the webpage shows success screen and redirects the user to the callbackurl pay3 backend also sends events to your backend service updating realtime status update of the payment once you receive the event, you could call order details api to get the status and payment details steps step 1 get access token to generate the access token, you will call the api with the api secret and client id please refer to the access token section of api documentation step 2 create a signature with parameters the request to create a crypto checkout order requires a header signature this can be generated using the javascript code snippet here create crypto checkout order docid\ f18xzee2fzkcrr ghbdwz step 3 call create crypto checkout order docid\ f18xzee2fzkcrr ghbdwz api sample payload const payloadcryptocheckout = { "requestid" "usdt 1234 poly", // todo application’s order id, send unique id for every order (preferably uuid) "address" "0x ", // todo add your address to receive the usdt "currency" "usdt ethereum", // please reach out to pay3 team for enabled currencies in your clientid "amount" "0 01", // amout of usdt (in this case) "clientid" " ",// todo your clientid "payeremail" "user\@email com", //pass the email fo the user (uniqueid) "mode" "returnurl", // optional this will return standalone web url to accpet crypto payment "callbackurl" "https //yoursite com/successpage" // optional this will return the user } sample response { "token" "c254a82b 5ae4 44bd b7d9 e198f8cd5f10", // dynamicly generated uuid "requestid" "usdt 1234 poly", "requestinfodata" { "amount" "0 01", "address" "0x ", "clientid" " ", "signature" " ", "currency" "usdt ethereum", "type" "crypto checkout" }, "url" "https //pprod ui pay3 app/ " } step 4 once the user clicks on checkout, redirect the user to the "url" in the response above step 5 make a payment to the qr shown in the screen you can use your prefered ethereum wallet eg metamask step 6 pay3 backend checks for the payment confirmation and shows "success" screen step 7 ui is redirected to "callbackurl" provied in the create order payload here eg " https //yoursite com/successpage https //yoursite com/successpage "