Sprintcheckout
Search…
⌃K

Authentication

Before you can start using the API you will need the API acces_token for your site. Follow the steps described below.

1. Apply to get your credentials

Please fill out this form to get authentication details to access Sprintcheckout hosted payments page API credentials.

2. Get your access token

You can ask Auth0 for tokens for the Hosted Payment Page application by issuing the following API call:
cURL
Node.Js
Java
PHP
jQuery
Python
Ruby
C#
Go
curl --request POST \
--url https://dev-0p0zfam6.us.auth0.com/oauth/token \
--header 'content-type: application/json' \
--data '{"client_id":"SVzFUYKKSwPwXQCjccKW0O4zy9ZWS7pI","client_secret":"XSNTTCEU3gXNiRIYZxgqduDePF3QrNvtF8W-6Hl1shPV87GalsnEdmVRufCvcdaW","audience":"https://api.sprintcheckout.com/checkout","grant_type":"client_credentials"}'
var request = require("request");
var options = { method: 'POST',
url: 'https://dev-0p0zfam6.us.auth0.com/oauth/token',
headers: { 'content-type': 'application/json' },
body: '{"client_id":"SVzFUYKKSwPwXQCjccKW0O4zy9ZWS7pI","client_secret":"XSNTTCEU3gXNiRIYZxgqduDePF3QrNvtF8W-6Hl1shPV87GalsnEdmVRufCvcdaW","audience":"https://api.sprintcheckout.com/checkout","grant_type":"client_credentials"}' };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
HttpResponse<String> response = Unirest.post("https://dev-0p0zfam6.us.auth0.com/oauth/token")
.header("content-type", "application/json")
.body("{\"client_id\":\"SVzFUYKKSwPwXQCjccKW0O4zy9ZWS7pI\",\"client_secret\":\"XSNTTCEU3gXNiRIYZxgqduDePF3QrNvtF8W-6Hl1shPV87GalsnEdmVRufCvcdaW\",\"audience\":\"https://api.sprintcheckout.com/checkout\",\"grant_type\":\"client_credentials\"}")
.asString();
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://dev-0p0zfam6.us.auth0.com/oauth/token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"client_id\":\"SVzFUYKKSwPwXQCjccKW0O4zy9ZWS7pI\",\"client_secret\":\"XSNTTCEU3gXNiRIYZxgqduDePF3QrNvtF8W-6Hl1shPV87GalsnEdmVRufCvcdaW\",\"audience\":\"https://api.sprintcheckout.com/checkout\",\"grant_type\":\"client_credentials\"}",
CURLOPT_HTTPHEADER => array(
"content-type: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
var settings = {
"async": true,
"crossDomain": true,
"url": "https://dev-0p0zfam6.us.auth0.com/oauth/token",
"method": "POST",
"headers": {
"content-type": "application/json"
},
"data": "{\"client_id\":\"SVzFUYKKSwPwXQCjccKW0O4zy9ZWS7pI\",\"client_secret\":\"XSNTTCEU3gXNiRIYZxgqduDePF3QrNvtF8W-6Hl1shPV87GalsnEdmVRufCvcdaW\",\"audience\":\"https://api.sprintcheckout.com/checkout\",\"grant_type\":\"client_credentials\"}"
}
$.ajax(settings).done(function (response) {
console.log(response);
});
import http.client
conn = http.client.HTTPSConnection("dev-0p0zfam6.us.auth0.com")
payload = "{\"client_id\":\"SVzFUYKKSwPwXQCjccKW0O4zy9ZWS7pI\",\"client_secret\":\"XSNTTCEU3gXNiRIYZxgqduDePF3QrNvtF8W-6Hl1shPV87GalsnEdmVRufCvcdaW\",\"audience\":\"https://api.sprintcheckout.com/checkout\",\"grant_type\":\"client_credentials\"}"
headers = { 'content-type': "application/json" }
conn.request("POST", "/oauth/token", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
require 'uri'
require 'net/http'
url = URI("https://dev-0p0zfam6.us.auth0.com/oauth/token")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\"client_id\":\"SVzFUYKKSwPwXQCjccKW0O4zy9ZWS7pI\",\"client_secret\":\"XSNTTCEU3gXNiRIYZxgqduDePF3QrNvtF8W-6Hl1shPV87GalsnEdmVRufCvcdaW\",\"audience\":\"https://api.sprintcheckout.com/checkout\",\"grant_type\":\"client_credentials\"}"
response = http.request(request)
puts response.read_body
var client = new RestClient("https://dev-0p0zfam6.us.auth0.com/oauth/token");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"client_id\":\"jEOk998bGKfj9UB3seSjCpj0ODaSecG4\",\"client_secret\":\"Lzrx2kpjD4gfFBCk7_iRQaIoqEdYg-rEM-HI8aibxAvuUT_kBcQV6vIewc2wQef9\",\"audience\":\"https://api.sprintcheckout.com/checkout\",\"grant_type\":\"client_credentials\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://dev-0p0zfam6.us.auth0.com/oauth/token"
payload := strings.NewReader("{\"client_id\":\"jEOk998bGKfj9UB3seSjCpj0ODaSecG4\",\"client_secret\":\"Lzrx2kpjD4gfFBCk7_iRQaIoqEdYg-rEM-HI8aibxAvuUT_kBcQV6vIewc2wQef9\",\"audience\":\"https://api.sprintcheckout.com/checkout\",\"grant_type\":\"client_credentials\"}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("content-type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}

Response

{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiU1Z6RlVZS0tTd1B3WFFDamNjS1cwTzR6eTlaV1M3cElAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3ByaW50Y2hlY2tvdXQtbXZwLmhlcm9rdWFwcC5jb20vY2hlY2tvdXQiLCJpYXQiOjE2NjYxMjA4MDcsImV4cCI6MTY2NjIwNzIwNywiYXpwIjoiU1Z6RlVZS0tTd1B3WFFDamNjS1cwTzR6eTlaV1M3cEkiLCJzY29wZSI6ImNyZWF0ZTpwYXltZW50U2V0dGluZ3MiLCJndHkiOiJjbGllbnQtY3JlZGVudGlhbHMifQ.jdWc8nGG2Nl037AWVQoRFRxDCE8ak5e9n2U2ES_b81FtJ_viDYBe78pFdgA_EyKA8Hx01v6y2Vbh4q8V5GG6qxwJTF02Dzni1LmiW9dJK_BSmxk2cBFN-6KeilMOwL9Ck0KGoVaTv9x7LU0WjNIayiKf42dffj3325ry1FCvNy899NsaI-uNK08iz6m-7At06siY4jGk_Dv83E-pJcTLw5vWq_UdHwmUNLsVPQJuTX3Ae82i_JGtXCmywK93seiaPMgsFEk-8ArQiEdDsZiXGbye1BJimM7ZbWRi3h_kwY2LCU-m1ph1b5Hz91TSF1gNgzs2lhFnXayFryAwk2XENw",
"token_type": "Bearer"
}
You can inspect how this token is built at jwt.io
You can now extract the access_token property from the response to make authorized requests to the API.
The expiration of the token is set to 24h (86400 seconds).

3. Sending the token to the API

You can use this Bearer token with an Authorization header in your request to obtain authorized access to the API.
cURL
Node.Js
Java
PHP
jQuery
Python
Ruby
C#
Go
curl --request GET \
--url http://path_to_the_api/ \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiU1Z6RlVZS0tTd1B3WFFDamNjS1cwTzR6eTlaV1M3cElAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpLnNwcmludGNoZWNrb3V0LmNvbS9jaGVja291dCIsImlhdCI6MTY2ODcxOTQ0OSwiZXhwIjoxNjY4ODA1ODQ5LCJhenAiOiJTVnpGVVlLS1N3UHdYUUNqY2NLVzBPNHp5OVpXUzdwSSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.Lm02upuHP0t0xRbaRR1KPu_265Jf7UmuqcwunsbOwfUHJsCvQMTFUM6aQcdh9_Y-27-6OBhfpc40QddvYsup8M6SjtG3Ek9XVwwOB1TQjKmYElafEos6PqIToVfVe-W8HaRuUxneTH3mXntpu7-03ZDPoWAQPuXMkNnxPJ3fBX6Vw2-3xvPNgg3mqQQAsJfQq39oJkvB3EUsLdWgs-o-vp7BTnXcnKjYG13f4SZJatYGi9tzKTO60hRWPOKNc6Ldt5kLeWycJ97kS_8j18iHaKJhzxTF1WS2W5wC7riKk2Lb5brutQQCgHN8Zst81LIkUpKpu4o9colKy6GTtxrP1Q'
const axios = require("axios");
const options = {
method: "GET",
url: "http://path_to_the_api/",
headers: { "Authorization": "Bearer TOKEN" },
};
axios(options)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
HttpResponse<String> response = Unirest.get("http://path_to_your_api/")
.header("Authorization", "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiU1Z6RlVZS0tTd1B3WFFDamNjS1cwTzR6eTlaV1M3cElAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpLnNwcmludGNoZWNrb3V0LmNvbS9jaGVja291dCIsImlhdCI6MTY2ODcxOTQ0OSwiZXhwIjoxNjY4ODA1ODQ5LCJhenAiOiJTVnpGVVlLS1N3UHdYUUNqY2NLVzBPNHp5OVpXUzdwSSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.Lm02upuHP0t0xRbaRR1KPu_265Jf7UmuqcwunsbOwfUHJsCvQMTFUM6aQcdh9_Y-27-6OBhfpc40QddvYsup8M6SjtG3Ek9XVwwOB1TQjKmYElafEos6PqIToVfVe-W8HaRuUxneTH3mXntpu7-03ZDPoWAQPuXMkNnxPJ3fBX6Vw2-3xvPNgg3mqQQAsJfQq39oJkvB3EUsLdWgs-o-vp7BTnXcnKjYG13f4SZJatYGi9tzKTO60hRWPOKNc6Ldt5kLeWycJ97kS_8j18iHaKJhzxTF1WS2W5wC7riKk2Lb5brutQQCgHN8Zst81LIkUpKpu4o9colKy6GTtxrP1Q")
.asString();
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://path_to_the_api/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiU1Z6RlVZS0tTd1B3WFFDamNjS1cwTzR6eTlaV1M3cElAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpLnNwcmludGNoZWNrb3V0LmNvbS9jaGVja291dCIsImlhdCI6MTY2ODcxOTQ0OSwiZXhwIjoxNjY4ODA1ODQ5LCJhenAiOiJTVnpGVVlLS1N3UHdYUUNqY2NLVzBPNHp5OVpXUzdwSSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.Lm02upuHP0t0xRbaRR1KPu_265Jf7UmuqcwunsbOwfUHJsCvQMTFUM6aQcdh9_Y-27-6OBhfpc40QddvYsup8M6SjtG3Ek9XVwwOB1TQjKmYElafEos6PqIToVfVe-W8HaRuUxneTH3mXntpu7-03ZDPoWAQPuXMkNnxPJ3fBX6Vw2-3xvPNgg3mqQQAsJfQq39oJkvB3EUsLdWgs-o-vp7BTnXcnKjYG13f4SZJatYGi9tzKTO60hRWPOKNc6Ldt5kLeWycJ97kS_8j18iHaKJhzxTF1WS2W5wC7riKk2Lb5brutQQCgHN8Zst81LIkUpKpu4o9colKy6GTtxrP1Q"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
var settings = {
"async": true,
"crossDomain": true,
"url": "http://path_to_the_api/",
"method": "GET",
"headers": {
"Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiU1Z6RlVZS0tTd1B3WFFDamNjS1cwTzR6eTlaV1M3cElAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpLnNwcmludGNoZWNrb3V0LmNvbS9jaGVja291dCIsImlhdCI6MTY2ODcxOTQ0OSwiZXhwIjoxNjY4ODA1ODQ5LCJhenAiOiJTVnpGVVlLS1N3UHdYUUNqY2NLVzBPNHp5OVpXUzdwSSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.Lm02upuHP0t0xRbaRR1KPu_265Jf7UmuqcwunsbOwfUHJsCvQMTFUM6aQcdh9_Y-27-6OBhfpc40QddvYsup8M6SjtG3Ek9XVwwOB1TQjKmYElafEos6PqIToVfVe-W8HaRuUxneTH3mXntpu7-03ZDPoWAQPuXMkNnxPJ3fBX6Vw2-3xvPNgg3mqQQAsJfQq39oJkvB3EUsLdWgs-o-vp7BTnXcnKjYG13f4SZJatYGi9tzKTO60hRWPOKNc6Ldt5kLeWycJ97kS_8j18iHaKJhzxTF1WS2W5wC7riKk2Lb5brutQQCgHN8Zst81LIkUpKpu4o9colKy6GTtxrP1Q"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
import http.client
conn = http.client.HTTPConnection("path_to_the_api")
headers = { 'Authorization': "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiU1Z6RlVZS0tTd1B3WFFDamNjS1cwTzR6eTlaV1M3cElAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpLnNwcmludGNoZWNrb3V0LmNvbS9jaGVja291dCIsImlhdCI6MTY2ODcxOTQ0OSwiZXhwIjoxNjY4ODA1ODQ5LCJhenAiOiJTVnpGVVlLS1N3UHdYUUNqY2NLVzBPNHp5OVpXUzdwSSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.Lm02upuHP0t0xRbaRR1KPu_265Jf7UmuqcwunsbOwfUHJsCvQMTFUM6aQcdh9_Y-27-6OBhfpc40QddvYsup8M6SjtG3Ek9XVwwOB1TQjKmYElafEos6PqIToVfVe-W8HaRuUxneTH3mXntpu7-03ZDPoWAQPuXMkNnxPJ3fBX6Vw2-3xvPNgg3mqQQAsJfQq39oJkvB3EUsLdWgs-o-vp7BTnXcnKjYG13f4SZJatYGi9tzKTO60hRWPOKNc6Ldt5kLeWycJ97kS_8j18iHaKJhzxTF1WS2W5wC7riKk2Lb5brutQQCgHN8Zst81LIkUpKpu4o9colKy6GTtxrP1Q" }
conn.request("GET", "/", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
require 'uri'
require 'net/http'
url = URI("http://path_to_the_api/")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiU1Z6RlVZS0tTd1B3WFFDamNjS1cwTzR6eTlaV1M3cElAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpLnNwcmludGNoZWNrb3V0LmNvbS9jaGVja291dCIsImlhdCI6MTY2ODcxOTQ0OSwiZXhwIjoxNjY4ODA1ODQ5LCJhenAiOiJTVnpGVVlLS1N3UHdYUUNqY2NLVzBPNHp5OVpXUzdwSSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.Lm02upuHP0t0xRbaRR1KPu_265Jf7UmuqcwunsbOwfUHJsCvQMTFUM6aQcdh9_Y-27-6OBhfpc40QddvYsup8M6SjtG3Ek9XVwwOB1TQjKmYElafEos6PqIToVfVe-W8HaRuUxneTH3mXntpu7-03ZDPoWAQPuXMkNnxPJ3fBX6Vw2-3xvPNgg3mqQQAsJfQq39oJkvB3EUsLdWgs-o-vp7BTnXcnKjYG13f4SZJatYGi9tzKTO60hRWPOKNc6Ldt5kLeWycJ97kS_8j18iHaKJhzxTF1WS2W5wC7riKk2Lb5brutQQCgHN8Zst81LIkUpKpu4o9colKy6GTtxrP1Q'
response = http.request(request)
puts response.read_body
var client = new RestClient("http://path_to_your_api/");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiakVPazk5OGJHS2ZqOVVCM3NlU2pDcGowT0RhU2VjRzRAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpLnNwcmludGNoZWNrb3V0LmNvbS9jaGVja291dCIsImlhdCI6MTY2ODcyMjAyOCwiZXhwIjoxNjY4ODA4NDI4LCJhenAiOiJqRU9rOTk4YkdLZmo5VUIzc2VTakNwajBPRGFTZWNHNCIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.hsf3c19Z2YCp3IN74vE0588SM0kNj0Tgun5BGWK2baHi329oMGMf-rjg_NYai8B3eb8rduurOJ6cZfEId1M57KOy5tpnaWtCo_j5qbIdlMW2xOdaTr89iydVVMMxdySc8tl2mjy-GH5xpPW78DRi-JRl1jYem04JGIvk1O3ZSQI6wFfO7nCXcypVaWP4gXamCMrR3VJqW31iDqTR2i-Tjvs5lInVi5AbxBt7CmHOT8dTaJRVfVbvEADhvoXbZovTEJTPZrpybuBauJDeLvnMnizltRFxMjJl5bTPV4ebFnCIcJk5x7rtgTtcMu-a99XPP05z0GCQpRFC8FLT5ar3CA");
IRestResponse response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "http://path_to_your_api/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjR5LTl6am1MYldIZV84MGhoVEMydyJ9.eyJpc3MiOiJodHRwczovL2Rldi0wcDB6ZmFtNi51cy5hdXRoMC5jb20vIiwic3ViIjoiakVPazk5OGJHS2ZqOVVCM3NlU2pDcGowT0RhU2VjRzRAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vYXBpLnNwcmludGNoZWNrb3V0LmNvbS9jaGVja291dCIsImlhdCI6MTY2ODcyMjAyOCwiZXhwIjoxNjY4ODA4NDI4LCJhenAiOiJqRU9rOTk4YkdLZmo5VUIzc2VTakNwajBPRGFTZWNHNCIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyJ9.hsf3c19Z2YCp3IN74vE0588SM0kNj0Tgun5BGWK2baHi329oMGMf-rjg_NYai8B3eb8rduurOJ6cZfEId1M57KOy5tpnaWtCo_j5qbIdlMW2xOdaTr89iydVVMMxdySc8tl2mjy-GH5xpPW78DRi-JRl1jYem04JGIvk1O3ZSQI6wFfO7nCXcypVaWP4gXamCMrR3VJqW31iDqTR2i-Tjvs5lInVi5AbxBt7CmHOT8dTaJRVfVbvEADhvoXbZovTEJTPZrpybuBauJDeLvnMnizltRFxMjJl5bTPV4ebFnCIcJk5x7rtgTtcMu-a99XPP05z0GCQpRFC8FLT5ar3CA")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}

Next

Continue to the next page to learn how to use the API endpoints Hosted Payment Page Integration