Get checkout session result
curl --request GET \
--url https://pria.praxislxp.com/api/user/stripe/checkout-result \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/stripe/checkout-result"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/stripe/checkout-result', 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://pria.praxislxp.com/api/user/stripe/checkout-result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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://pria.praxislxp.com/api/user/stripe/checkout-result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/user/stripe/checkout-result")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/stripe/checkout-result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"plan": "Pro",
"credits": 500,
"amount": 5000,
"currency": "usd",
"accountName": "Personal",
"paymentStatus": "paid",
"mode": "payment"
}{
"message": "<string>"
}{
"success": false,
"message": "<string>",
"error": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Billing
Get checkout session result
Retrieves details of a completed Stripe checkout session for displaying a purchase confirmation screen. Verifies the session belongs to the authenticated user.
GET
/
api
/
user
/
stripe
/
checkout-result
Get checkout session result
curl --request GET \
--url https://pria.praxislxp.com/api/user/stripe/checkout-result \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/user/stripe/checkout-result"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/user/stripe/checkout-result', 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://pria.praxislxp.com/api/user/stripe/checkout-result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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://pria.praxislxp.com/api/user/stripe/checkout-result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/user/stripe/checkout-result")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/stripe/checkout-result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"plan": "Pro",
"credits": 500,
"amount": 5000,
"currency": "usd",
"accountName": "Personal",
"paymentStatus": "paid",
"mode": "payment"
}{
"message": "<string>"
}{
"success": false,
"message": "<string>",
"error": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
JWT token passed in x-access-token header
Query Parameters
Stripe checkout session ID (from the success URL redirect)
Response
Checkout result retrieved successfully
Example:
true
Package display name (e.g., 'Silver', 'Pro')
Example:
"Pro"
Number of credits added to the account
Example:
500
Total amount charged in cents
Example:
5000
Three-letter ISO currency code
Example:
"usd"
Name of the account credited (institution name or 'Personal')
Example:
"Personal"
Stripe payment status
Available options:
paid, unpaid, no_payment_required Example:
"paid"
Stripe checkout mode
Available options:
payment, subscription Example:
"payment"
Was this page helpful?
Create subscription checkout sessionLazy-fetch the bulk thinking and reasoning array for a single History record
⌘I