Skip to main content
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

x-access-token
string
header
required

JWT token passed in x-access-token header

Query Parameters

session_id
string
required

Stripe checkout session ID (from the success URL redirect)

Response

Checkout result retrieved successfully

success
boolean
Example:

true

plan
string

Package display name (e.g., 'Silver', 'Pro')

Example:

"Pro"

credits
integer | null

Number of credits added to the account

Example:

500

amount
integer

Total amount charged in cents

Example:

5000

currency
string

Three-letter ISO currency code

Example:

"usd"

accountName
string

Name of the account credited (institution name or 'Personal')

Example:

"Personal"

paymentStatus
enum<string>

Stripe payment status

Available options:
paid,
unpaid,
no_payment_required
Example:

"paid"

mode
enum<string>

Stripe checkout mode

Available options:
payment,
subscription
Example:

"payment"