I’m integrating Moneris Hosted Paypage (mandatory). On my checkout component html I perform a form post which flows to the Moneris Payment page. Once the transaction is complete or fails Moneris builds a response and sends it back in a POST.
Any suggestions on how I can handle response data?
@vigorwebsolutions Wow thanks! I’ll have a look at these. Are these two packages used together or separately? Have you had any experiences with these packages?
So if the Moneris gateway sends a response as a POST back to https://mysite.com/handleresponse, then Picker.router will process this and then I can do things with the response data returned in the POST?
For example:
Picker.route( '/handleresponse', function( params, request, response, next ) {
// Handle our request and response here.
});
Where would this code reside? Do you have a particular directory structure/naming convention you follow?
Shouldn’t the body parser have parsed out any of the data passed from Postman?
I was waiting to build out the webhooks until I’m able to confirm I’m retrieving the request body message.
Am I missing something?
So I’ve made some progress and I’m able to parse the data from the request body. Does anyone know how I might go about routing to a new view to render the information i.e. a receipt page or a denial page?