The polyright PaymentTerminal application allows payments on any polyright system through the polyright platform. The application is available for desktop, tablet and smartphone.
- RFID or NFC reader
- Internet connection
- Compatible platforms:
- Windows 10.0.17763 (1809)
- Android 5.0
- iOS 14 (coming soon)
- Install application from App Store
- Windows Store
- Google Play
- Apple Store (coming soon)
- Launch application
- Activate Payment Terminal
- Ready!
URI Scheme is supported by Payment Terminal to allow simplified integration of polyright payment from other applications and websites. For full integration and best user experience, use the REST API and CardReader SDK provided by polyright.
URI Scheme | Description |
---|---|
pay://transaction |
Start a new transaction |
pay://transaction/validate |
Validate the current transaction |
pay://transaction/cancel |
Cancel the current transaction |
Parameters | Description |
---|---|
amount |
Amount with point as decimal separator |
purpose |
Transaction description for the end user |
externalId |
Your transaction ID. This must be unique |
paymentMode |
Enabled payment modes. Remains empty to enable all supported payment modes. Supported modes:
|
validationCallback |
URI Scheme called to validate transaction when person was found. This allows you to apply a discount before processing the transaction by Payment Terminal. The properties of the person are added as Query String of the URI Scheme |
successCallback |
URI Scheme called when the transaction was successfully processed |
cancelCallback |
URI Scheme called when the transaction was cancelled |
errorCallback |
URI Scheme called when an error occurred while processing the transaction |
Callbacks are used by the payment terminal to send the result back of operations to calling application. It can be done through URI Scheme of an application or a URL of a web page. Results are passed as Query String in the URI.
- Start a payment transaction with any payment mode (Polyright card or TWINT):
pay://transaction?amount=-4.25&successCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?success&cancelCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?cancel&errorCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?error
- Start a payment transaction with TWINT:
pay://transaction?amount=-4.25&paymentMode=Twint&successCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?success&cancelCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?cancel&errorCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?error
- Start a payment transaction with TWINT which data has to be validated:
pay://transaction?amount=-4.25&paymentMode=Twint&validationCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?validation&successCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?success&cancelCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?cancel&errorCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?error
- Validate current transaction defining a new amount (discount):
pay://transaction/validate?amount=-3.15&paymentMode=Twint&successCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?success&cancelCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?cancel&errorCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?error
- Cancel current transaction:
pay://transaction/cancel?successCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?success&cancelCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?cancel&errorCallback=https://polyright.github.io/PaymentTerminal-URI-Scheme/samples/html/basic.html?error
This simple web page shows how to start a transaction and receive the result from the callback URL
This is a bug in Google Chrome, try:
- Close Google Chrome application and system tray
- Open
%LOCALAPPDATA%\Google\Chrome\User Data\Profile 1\Preferences
file - Search
excluded_schemes
section - Add
"pay":false
- Save and launch sample
- Done!