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"
}
Creates a Session object.
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"
}
Show Toggle object
Show Toggle object
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"
}