Resolve a pay link for payment processing
curl --request GET \
--url https://mag3nt.com/api/pay/{code}/resolveimport requests
url = "https://mag3nt.com/api/pay/{code}/resolve"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mag3nt.com/api/pay/{code}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mag3nt.com/api/pay/{code}/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mag3nt.com/api/pay/{code}/resolve"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mag3nt.com/api/pay/{code}/resolve")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/pay/{code}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"type": "receive",
"link_type": "SINGLE",
"code": "<string>",
"amount": 123,
"asset": "<string>",
"network": "<string>",
"memo": "<string>",
"status": "<string>",
"uses": 123,
"max_uses": 123,
"expires_at": "2023-11-07T05:31:56Z",
"accepted_protocols": [
"<string>"
]
}{
"error": "<string>",
"code": "no_active_plan"
}{
"error": "Card not found"
}{
"type": "receive",
"status": "EXPIRED",
"error": "<string>"
}Pay Links
Resolve a pay link for payment processing
Unified resolver used by the universal checkout surface. For a DIRECT credential whose merchant has no active membership plan or has used up their monthly quota, returns the pricing-gate error body instead of link details so a payer is never sent to a merchant who cannot legitimately accept.
GET
/
api
/
pay
/
{code}
/
resolve
Resolve a pay link for payment processing
curl --request GET \
--url https://mag3nt.com/api/pay/{code}/resolveimport requests
url = "https://mag3nt.com/api/pay/{code}/resolve"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://mag3nt.com/api/pay/{code}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mag3nt.com/api/pay/{code}/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mag3nt.com/api/pay/{code}/resolve"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mag3nt.com/api/pay/{code}/resolve")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/pay/{code}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"type": "receive",
"link_type": "SINGLE",
"code": "<string>",
"amount": 123,
"asset": "<string>",
"network": "<string>",
"memo": "<string>",
"status": "<string>",
"uses": 123,
"max_uses": 123,
"expires_at": "2023-11-07T05:31:56Z",
"accepted_protocols": [
"<string>"
]
}{
"error": "<string>",
"code": "no_active_plan"
}{
"error": "Card not found"
}{
"type": "receive",
"status": "EXPIRED",
"error": "<string>"
}