Application Form Redirect
Overview
The Application Form Redirect allows you to launch a SportsPay application form from within your platform for either a:
- đ New application (using an
OfferID) - đ Existing or saved application (using an
ApplicationID)
This form can be pre-filled with known information, and organization's have the option to save their progress and return later if needed.
Once an organization completes or exits the form, SportsPay will redirect them back to your website using the provided CallbackURL, and include the ApplicationID and application status in the redirect.
You can use the ApplicationID from the redirect to allow the organization to resume the same application at a later time.
Route Format
đš For New Applications
To start a new application, use this route format:
https://register.sportspay.com/en-ca/register/{OfferID}?OrgID={OrgID}&AuthPersonEmail={Email}&CallbackURL={URL}Use an
OfferIDto initiate a brand-new application via one of your Pricing Models/Offers. All query parameters are required.
đš For Returning or Existing Applications
To resume an existing or saved application, use the ApplicationID from the previous callback:
https://register.sportspay.com/en-ca/register/{ApplicationID}?OrgID={OrgID}&CallbackURL={URL}Use an
ApplicationIDwhen the user is returning to complete an existing application.AuthPersonEmailis optional but can be included.
Required Query Parameters
đšFor New Applications (OfferID)
OfferID)| Parameter | Type | Description |
|---|---|---|
OfferID | String | Unique identifier for the offer type |
OrgID | String | Unique identifier for the organization (assigned by you) |
AuthPersonEmail | String | Email address of the Authorized Signor completing the application |
CallbackURL | URL | URL to redirect the user to after exiting or completing the form |
đšFor Existing Applications (ApplicationID)
ApplicationID)| Parameter | Type | Description |
|---|---|---|
ApplicationID | String | Unique identifier for the existing or saved application |
OrgID | String | Unique identifier for the organization (assigned by you) |
CallbackURL | URL | URL to redirect the user to after exiting or completing the form |
Optional Pre-Filled Fields (POST)
You may submit additional POST data to pre-fill application fields. These values will only be used if the fields havenât already been completed.
| Field Name | Type | Description |
|---|---|---|
Data | String | Custom tracking data (will be returned via redirect) |
LegalName | String | Legal name of the organization/business |
OrgName | String | âDoing Business Asâ name |
AuthPersonName | String | Full name of the Authorized Signor |
AuthPersonPhone | String | Authorized contactâs phone number |
AuthPersonDOB | Date | Date of birth (format: YYYY-MM-DD) |
OrgAddressLine1 | String | Address line 1 |
OrgAddressLine2 | String | Address line 2 (optional) |
OrgCity | String | City |
OrgProvinceStateCode | String | Province/State code (e.g., ON, CA, NY) |
OrgPostalZipCode | String | Postal or ZIP code |
OrgWebsite | URL | Website URL |
OrgMainContactPerson | String | Primary business contact |
OrgMainEmail | String | Main business email |
OrgMainPhoneNumber | String | Main business phone number |
BusinessNumber | String | Tax registration or federal business number |
YearEstablished | Number | Year the business was founded (e.g., 2004) |
Redirect Behavior
After a user exits or submits the form, they are redirected to your specified CallbackURL with the following query parameters:
{CallbackURL}?data={PtnrData}&code={ApplicationID}&status={Status}
Redirect Parameters
| Parameter | Description |
|---|---|
data | The custom tracking value from the original POST (if provided) |
code | The ApplicationID that uniquely identifies the registration |
status | Status of the application (see values below) |
Status Values
| Status | Description |
|---|---|
incomplete | Application was started but not completed. User exited or saved progress. |
in-review | Application was submitted and is currently under review by SportsPay. It is no longer editable. |
completed | Application was approved. Credentials have been issued and sent via webhook. |
error | An error occurred (e.g., expired link, invalid pricing). Contact SportsPay to troubleshoot. |
Example
GET Example (Basic)
https://register.sportspay.com/en-ca/register/ACME1234?OrgID=550e8400-e29b-41d4-a716-446655440000&[email protected]&CallbackURL=https://yoursite.com/registration-return
POST Example (Pre-Filled Fields)
Send a POST request to the above URL with form-encoded data like:
LegalName=Acme+Corp&OrgName=Acme+Inc&OrgCity=Toronto&OrgProvinceStateCode=ON
Example Redirect
https://yoursite.com/registration-return?data=abc123xyz&code=ACME1234&status=in-review
Notification Callback
When a merchant's account setup is complete and approved, SportsPay can automatically notify your system by sending the organization's credentials to a designated API endpoint â this is referred to as the notification callback.
This callback ensures a seamless handoff of credentials (such as terminal ID and password) for integration into your platform.
Set Up
Please coordinate with the SportsPay Team to set up your preferred notification method. You can choose one of the following:
- Callback (Recommended): SportsPay will send the finalized account credentials via a secure webhook to your specified endpoint.
- Email Delivery: If you do not have an API endpoint available, we can email the credentials directly to your team.
Note: The structure of the callback payload can be customized to match your implementation needs.
{
"sportspay_merchant_id": "MERC1234",
"sportspay_term_id": "TERM1234",
"sportspay_term_password": "Pass1234",
"org_id": "a1nKKJ545sdeafx",
"livemode": false,
"sportspay_account_status":"completed"
}Fields
Field | Description |
|---|---|
sportspay_merchant_id | Unique ID assigned to the merchant account within SportsPay |
sportspay_term_id | Terminal ID issued to the merchant, used for processing payments |
sportspay_term_password | Password associated with the Terminal ID |
org_id | The OrgID you originally passed in the registration link |
livemode | Indicates whether the account is live (true) or in test mode (false) |
sportspay_account_status | Status of the account setup (e.g., completed) |
Error Handling
If you receive a status of error in the redirect, we recommend:
- Logging the error
- Providing users with an option to retry the onboarding process
- Contacting SportsPay support if issues persist
Updated 4 months ago
