curl --request POST \
--url https://brain.orcuspay.com/api/checkout/session \
--header 'X-AUTH-ACCESS-KEY: ak_123' \
--header 'X-AUTH-SECRET-KEY: sk_123' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"success_url": "https://example.com",
"cancel_url": "https://example.com",
"customer": {
"name": "Rahim Ahmed",
"email": "rahim@gmail.com",
"phone": "01827297490",
"address": "House 81, Road 22, Sector 73, Uttara",
"city": "Dhaka"
},
"line_items": [
{
"quantity": 4,
"price_data": {
"unit_amount": 3000,
"product_data": {
"name": "Potato (kg)"
}
}
}
],
"meta_data": {
"invoice_id": "NSOIENKXNY"
}
}
'
{
"url": "https://checkout.orcus.com.bd/pay/pay_prod_eed087950441ke82b9f2ee4884e78c11"
}
Checkout Sessions
Create Session
Creates a Session object.
POST
/
checkout
/
session
curl --request POST \
--url https://brain.orcuspay.com/api/checkout/session \
--header 'X-AUTH-ACCESS-KEY: ak_123' \
--header 'X-AUTH-SECRET-KEY: sk_123' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"success_url": "https://example.com",
"cancel_url": "https://example.com",
"customer": {
"name": "Rahim Ahmed",
"email": "rahim@gmail.com",
"phone": "01827297490",
"address": "House 81, Road 22, Sector 73, Uttara",
"city": "Dhaka"
},
"line_items": [
{
"quantity": 4,
"price_data": {
"unit_amount": 3000,
"product_data": {
"name": "Potato (kg)"
}
}
}
],
"meta_data": {
"invoice_id": "NSOIENKXNY"
}
}
'
{
"url": "https://checkout.orcus.com.bd/pay/pay_prod_eed087950441ke82b9f2ee4884e78c11"
}
Body
The URL to redirect the user to after a successful payment.
The URL to redirect the user to if they cancel the payment process.
An array of objects representing the items in the transaction.
Show Toggle object
Show Toggle object
The number of units of the item being purchased.
An object containing pricing details for the item.
Show Toggle object
Show Toggle object
An object containing additional data associated with the transaction.
Response
URL of the payment page.
curl --request POST \
--url https://brain.orcuspay.com/api/checkout/session \
--header 'X-AUTH-ACCESS-KEY: ak_123' \
--header 'X-AUTH-SECRET-KEY: sk_123' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"success_url": "https://example.com",
"cancel_url": "https://example.com",
"customer": {
"name": "Rahim Ahmed",
"email": "rahim@gmail.com",
"phone": "01827297490",
"address": "House 81, Road 22, Sector 73, Uttara",
"city": "Dhaka"
},
"line_items": [
{
"quantity": 4,
"price_data": {
"unit_amount": 3000,
"product_data": {
"name": "Potato (kg)"
}
}
}
],
"meta_data": {
"invoice_id": "NSOIENKXNY"
}
}
'
{
"url": "https://checkout.orcus.com.bd/pay/pay_prod_eed087950441ke82b9f2ee4884e78c11"
}
⌘I