Process payment
curl --request POST \
--url https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"fingerprint": "<string>",
"radarSessionId": "<string>",
"savePaymentMethod": true,
"walletDisplayName": "<string>"
}
'import requests
url = "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment"
payload = {
"id": "<string>",
"fingerprint": "<string>",
"radarSessionId": "<string>",
"savePaymentMethod": True,
"walletDisplayName": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
fingerprint: '<string>',
radarSessionId: '<string>',
savePaymentMethod: true,
walletDisplayName: '<string>'
})
};
fetch('https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment', 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://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'fingerprint' => '<string>',
'radarSessionId' => '<string>',
'savePaymentMethod' => true,
'walletDisplayName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"radarSessionId\": \"<string>\",\n \"savePaymentMethod\": true,\n \"walletDisplayName\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"radarSessionId\": \"<string>\",\n \"savePaymentMethod\": true,\n \"walletDisplayName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"radarSessionId\": \"<string>\",\n \"savePaymentMethod\": true,\n \"walletDisplayName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"disabled": false,
"id": "155",
"terms": {
"commercialAttribution": true,
"commercialRevCeiling": 0,
"commercialRevShare": 10000000,
"commercialUse": true,
"commercializerChecker": "0x0000000000000000000000000000000000000000",
"commercializerCheckerData": "0x0000000000000000000000000000000000000000",
"currency": "0x1234567890123456789012345678901234567890",
"defaultMintingFee": 100,
"derivativeRevCeiling": 0,
"derivativesAllowed": true,
"derivativesApproval": false,
"derivativesAttribution": true,
"derivativesReciprocal": true,
"expiration": 0,
"royaltyPolicy": "0x1234567890123456789012345678901234567890",
"transferable": true,
"uri": "Will contain a reference to the license terms metadata"
}
}Orders
Process Payment
Process payment for an order.
POST
/
2022-06-09
/
orders
/
{orderId}
/
payment
Process payment
curl --request POST \
--url https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"fingerprint": "<string>",
"radarSessionId": "<string>",
"savePaymentMethod": true,
"walletDisplayName": "<string>"
}
'import requests
url = "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment"
payload = {
"id": "<string>",
"fingerprint": "<string>",
"radarSessionId": "<string>",
"savePaymentMethod": True,
"walletDisplayName": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
fingerprint: '<string>',
radarSessionId: '<string>',
savePaymentMethod: true,
walletDisplayName: '<string>'
})
};
fetch('https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment', 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://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'fingerprint' => '<string>',
'radarSessionId' => '<string>',
'savePaymentMethod' => true,
'walletDisplayName' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"radarSessionId\": \"<string>\",\n \"savePaymentMethod\": true,\n \"walletDisplayName\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"radarSessionId\": \"<string>\",\n \"savePaymentMethod\": true,\n \"walletDisplayName\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.crossmint.com/api/2022-06-09/orders/{orderId}/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"fingerprint\": \"<string>\",\n \"radarSessionId\": \"<string>\",\n \"savePaymentMethod\": true,\n \"walletDisplayName\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"disabled": false,
"id": "155",
"terms": {
"commercialAttribution": true,
"commercialRevCeiling": 0,
"commercialRevShare": 10000000,
"commercialUse": true,
"commercializerChecker": "0x0000000000000000000000000000000000000000",
"commercializerCheckerData": "0x0000000000000000000000000000000000000000",
"currency": "0x1234567890123456789012345678901234567890",
"defaultMintingFee": 100,
"derivativeRevCeiling": 0,
"derivativesAllowed": true,
"derivativesApproval": false,
"derivativesAttribution": true,
"derivativesReciprocal": true,
"expiration": 0,
"royaltyPolicy": "0x1234567890123456789012345678901234567890",
"transferable": true,
"uri": "Will contain a reference to the license terms metadata"
}
}Path Parameters
Body
application/json
- Option 1
- Option 2
- Option 3
- Option 4
Available options:
basis-theory-apple-pay-token, basis-theory-google-pay-token, basis-theory-network-token, basis-theory-token, basis-theory-token-intent, crossmint-payment-method Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
201 - application/json
Payment processed successfully
The License Terms ID
Example:
"1"
The PIL terms details as per retrieved from story
Show child attributes
Show child attributes
Example:
{
"commercialAttribution": true,
"commercialRevCeiling": 0,
"commercialRevShare": 10000000,
"commercialUse": true,
"commercializerChecker": "0x0000000000000000000000000000000000000000",
"commercializerCheckerData": "0x0000000000000000000000000000000000000000",
"currency": "0x1234567890123456789012345678901234567890",
"defaultMintingFee": 100,
"derivativeRevCeiling": 0,
"derivativesAllowed": true,
"derivativesApproval": false,
"derivativesAttribution": true,
"derivativesReciprocal": true,
"expiration": 0,
"royaltyPolicy": "0x1234567890123456789012345678901234567890",
"transferable": true,
"uri": "Will contain a reference to the license terms metadata"
}
If true, the license terms will be disabled. Effectively preventing future mints with this license.
Example:
false
Example:
{
"disabled": false,
"id": "155",
"terms": {
"commercialAttribution": true,
"commercialRevCeiling": 0,
"commercialRevShare": 10000000,
"commercialUse": true,
"commercializerChecker": "0x0000000000000000000000000000000000000000",
"commercializerCheckerData": "0x0000000000000000000000000000000000000000",
"currency": "0x1234567890123456789012345678901234567890",
"defaultMintingFee": 100,
"derivativeRevCeiling": 0,
"derivativesAllowed": true,
"derivativesApproval": false,
"derivativesAttribution": true,
"derivativesReciprocal": true,
"expiration": 0,
"royaltyPolicy": "0x1234567890123456789012345678901234567890",
"transferable": true,
"uri": "Will contain a reference to the license terms metadata"
}
}
Was this page helpful?

