When setting up your partner site to use Onescan it is important that you define a call-back endpoint that we can use to pass information back to you about a process.


This URL needs to handle post messages and needs to be externally discoverable by our platform.


This URL needs to be provided as part on your first request to Onescan as below:


{

   "ProcessType": "Payment",

   "MessageType": "StartPayment",

   "SessionData": "CUSTOM SESSION DATA",

   "Version": 2,

   "MetaData": {

      "EndpointURL": "https://YOUR SERVER URL AND ENDPOINT"

   }

}


When developing, it's not always possible to host an externally visible URL and in this case we recommend a tool like https://ngrok.com/ that can create a secure tunnel to localhost.