Payment amount limits: $1 - $50,000 CAD
JSON Web Tokens are used to ensure the page is secure.
We can host custom CSS to allow you to style the page to match your app's theme.
Clicking Continue will validate all fields, create a staged payment record (which will be marked as paid during the Resolve Payment Call), and initiate a redirect and postMessage event
Clicking Cancel will initiate a redirect and postMessage event
The Hosted Page returns the following parameters through a redirect (URL query parameters) and an iframe postMessage event for the mobile or web application to intercept and handle.
Staged - Staged and ready for Resolve Payment Call
Cancelled - User cancelled
Error - Something went wrong
Identifier for this staged payment.
Email address for this payment.
Account holder name for this payment.
Client Reference (commonly account number or business number).
Note: Sensitive Client References like Social Insurance Numbers (SINs) will not be returned.
Amount for this payment.
When embedded in an iframe, the Hosted Page sends messages to the parent application using window.postMessage().
If the payment has been successfully staged.
{
"event": "RESULT",
"message": "Success",
"Result": "Staged",
"BillerService_Seq": 9999999,
"CustomerEmail": "luke@skywalker.com",
"CustomerName": "Luke Skywalker",
"PaymentAmount": "150.75",
"CustomerClientRef": "832729171"
}
If the customer cancels the payment.
{
"event": "RESULT",
"message": "",
"Result": "Cancelled"
}
If there was an issue in processing the request.
{
"event": "RESULT",
"message": "Something went wrong",
"Result": "Error"
}
To allow the iframe to resize dynamically as the page content changes, a height event will be sent whenever the Hosted Page's content height changes.
{
"event": "HEIGHT",
"height": 1080
}
When opened in a WebView, you must intercept the redirect and process the URL query parameters.
If the payment has been successfully staged.
https://paysimply.ca/en/hosted-page/result
?Result=Staged
&BillerService_Seq=9999999
&CustomerEmail=luke%40skywalker.com
&CustomerName=Luke+Skywalker
&CustomerClientRef=832729171
&PaymentAmount=150.75
If the customer cancels the payment.
https://paysimply.ca/en/hosted-page/result
?Result=Cancelled
If there was an issue in processing the request.
https://paysimply.ca/en/hosted-page/result
?Result=Error
Line breaks were added for readability.The language path segment could be /en or /fr, depending on the language selected.You can customize the appearance of the Biller Hosted Page to match your app's theme using your own custom CSS.
If you do not have a custom stylesheet or your custom stylesheet fails to load, the Hosted Page will automatically use the default styling.
We recommend using the Stylus browser extension to create and preview your custom CSS.
Install the Stylus extension for Chrome.
Open our Custom CSS Test Page. This is a sample Biller Hosted Page with default styling disabled, allowing you to create and preview your own styles from scratch.
48346 is our Kitchen Sink test Biller, which contains a variety of payment fields. You can replace this number with the Biller ID of any other Biller you would like to test.
Open your browser's Developer Tools (F12), then use the Elements tab to inspect the page and identify the CSS classes and selectors you want to customize.
Click the Stylus extension icon in your browser toolbar, then click the + button beside the Hosted Page URL to create a new style.
In the Stylus editor:
Set the style to Enabled
Set the URL rule to URLs starting with, followed by the Hosted Page URL.
Test your styling on different screen sizes and make any necessary adjustments.
Once finished, export or save your stylesheet as a .css file and send it directly to your PSI Integration Manager.
We will upload your CSS to our CDN and enable it for your service. Your custom styling will then load automatically whenever customers open your Hosted Page.
Use the following selectors to customize the Hosted Page. All custom CSS should be scoped under .biller-hosted-page.
.page-container - Main page container
.recipient - Payment recipient information
.recipient-logo - Recipient logo
.recipient-name - Recipient name
.form - Payment form
.form-header - Form heading
.banner - Optional banner
.field - All form fields
.field-email - Email field
.field-name - Account holder name
.field-client-ref - Client reference
.field-custom - Additional biller fields
.field-amount - Payment amount
.form-footer - Form footer
.cancel-button - Cancel button
.continue-button - Continue button
.form-debug - Debug section containing the AUTOFILL DETAILS button, which automatically populates form fields for testing.
Only displayed in the test environment.
The Hosted Page uses CSS Grid, allowing you to rearrange form fields and buttons without modifying the page's HTML.
You can use the order property to change the visual position of elements and grid-column to control how much space they occupy.
For example:
.biller-hosted-page .form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.biller-hosted-page .field-email {
order: 1;
grid-column: 1 / -1;
}
.biller-hosted-page .field-amount {
order: 2;
grid-column: 1 / -1;
}
.biller-hosted-page .field-name {
order: 3;
grid-column: 1 / -1;
}
.biller-hosted-page .cancel-button {
order: 4;
}
.biller-hosted-page .continue-button {
order: 5;
}
This example moves the payment amount field above the account holder name and places the Cancel and Continue buttons side by side.
Other sections, such as the form header and footer, can also be repositioned using the same approach.
Note: CSS order changes only the visual layout, not the keyboard navigation or screen reader reading order.
You can customize the fonts used on the Hosted Page using system fonts or custom web fonts.
System Fonts
Use the font-family property to apply fonts already available on the user's device.
.biller-hosted-page {
font-family: Arial, Helvetica, sans-serif;
}
Custom Web Fonts
You can also load fonts from external sources, including Google Fonts or your own hosted font files, using @font-face.
@font-face {
font-family: 'CustomFont';
src: url('https://example.com/fonts/custom-font.woff2') format('woff2');
font-display: swap;
}
.biller-hosted-page {
font-family: 'CustomFont', Arial, sans-serif;
}