Users subscribed to Express Checkout are now able to pass Charge Quantity as part of the Code Snippet (iframe) on Express Checkout.
Pass only One Plan and One Charge
<script>
window.ssp_config = {
selector: "ordway_ssp",
frameWidth : "1000",
frameHeight : "800",
company_token : "eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoyMSwiY29tcGFueV9pZCI6MjMyLCJleHAiOjE3NTQ4MTE0ODl9.",
iframe_src: "https://selfservice-portal-dev.ordwaylabs.com/",
input_data: {
"customer_name":"Ordway Customer",
"email":"john.doe@email.com",
"first_name": "Ordway First Name",
"last_name": "Ordway Last Name",
"service_start_date":"2025-09-28",
"plans": [
{
"plan_id": "PLN-XXXX1",
"charges": [
{
"charge_id": "CHG-XXXX1",
"quantity": "1"
}
]
}
],
"return_url":"https://ordwaylabs.com/"
},
express_mode: true,
configuration: "Default Express Checkout Configuration"
};
</script>
<script src="https://js.stripe.com/v3/"></script>
<script src="https://selfservice-portal-dev.ordwaylabs.com/assets/embed.js" defer ></script>
Pass Multiple Changes in a Plan
<script>
window.ssp_config = {
selector: "ordway_ssp",
frameWidth : "1000",
frameHeight : "800",
company_token : "eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoyMSwiY29tcGFueV9pZCI6MjMyLCJleHAiOjE3NTQ4MTE0ODl9.",
iframe_src: "https://selfservice-portal-dev.ordwaylabs.com/",
input_data: {
"customer_name":"Ordway Customer",
"email":"john.doe@email.com",
"first_name": "Ordway First Name",
"last_name": "Ordway Last Name",
"service_start_date":"2025-09-28",
"plans": [
{
"plan_id": "PLN-XXXX1",
"charges": [
{
"charge_id": "CHG-XXXX1",
"quantity": "1"
},
{
"charge_id": "CHG-XXXX2",
"quantity": "1"
},
{
"charge_id": "CHG-XXXX3",
"quantity": "1"
}
]
}
],
"return_url":"https://ordwaylabs.com/"
},
express_mode: true,
configuration: "Default Express Checkout Configuration"
};
</script>
<script src="https://js.stripe.com/v3/"></script>
<script src="https://selfservice-portal-dev.ordwaylabs.com/assets/embed.js" defer ></script>
Pass more than one Plan
<script>
window.ssp_config = {
selector: "ordway_ssp",
frameWidth : "1000",
frameHeight : "800",
company_token : "eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoyMSwiY29tcGFueV9pZCI6MjMyLCJleHAiOjE3NTQ4MTE0ODl9.",
iframe_src: "https://selfservice-portal-dev.ordwaylabs.com/",
input_data: {
"customer_name":"Ordway Customer",
"email":"john.doe@email.com",
"first_name": "Ordway First Name",
"last_name": "Ordway Last Name",
"service_start_date":"2025-09-28",
"plans": [
{
"plan_id": "PLN-XXXX1",
"charges": [
{
"charge_id": "CHG-XXXX1",
"quantity": "1"
}
]
},
{
"plan_id": "PLN-XXXX2",
"charges": [
{
"charge_id": "CHG-XXXX1",
"quantity": "1"
}
]
},
{
"plan_id": "PLN-XXXX3",
"charges": [
{
"charge_id": "CHG-XXXX1",
"quantity": "1"
}
]
},
],
"return_url":"https://ordwaylabs.com/"
},
express_mode: true,
configuration: "Default Express Checkout Configuration"
};
</script>
<script src="https://js.stripe.com/v3/"></script>
<script src="https://selfservice-portal-dev.ordwaylabs.com/assets/embed.js" defer ></script>
Pass just the Plan without a Charge
<script>
window.ssp_config = {
selector: "ordway_ssp",
frameWidth : "1000",
frameHeight : "800",
company_token : "eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoyMSwiY29tcGFueV9pZCI6MjMyLCJleHAiOjE3NTQ4MTE0ODl9.",
iframe_src: "https://selfservice-portal-dev.ordwaylabs.com/",
input_data: {
"customer_name":"Ordway Customer",
"email":"john.doe@email.com",
"first_name": "Ordway First Name",
"last_name": "Ordway Last Name",
"service_start_date":"2025-09-28",
"plans": [
{
"plan_id": "PLN-XXXX1",
}
],
"return_url":"https://ordwaylabs.com/"
},
express_mode: true,
configuration: "Default Express Checkout Configuration"
};
</script>
<script src="https://js.stripe.com/v3/"></script>
<script src="https://selfservice-portal-dev.ordwaylabs.com/assets/embed.js" defer ></script>
Mandatory fields:
- Customer_name: Can be an individual name or a company name
- Email: A valid email ID
- Service_start_date: A valid date in the format - YYYY- MM- DD
- Plan ID: A valid Plan ID existing in the company - passed as an Array
- Configuration name
Optional Fields:
- First_name: Customer First Name
- Last_name: Customer Last Name
- Charges: Valid Charge ID existing in the company - passed as an Array
- Quantity as a whole number
Notes:
- When First Name or Last Name is not passed, the script uses the customer name to be used as the first name /last name of the contact.
- When First Name and Last Name is passed, the script uses the First Name and Last Name Provided as the First Name and Last Name of the contact.
- When just the first name is passed, we use the customer last name as the last name of the contact.
Comments
0 comments
Please sign in to leave a comment.