Questions tagged [mpgs-session-js]

Use this tag to raise issues with the MPGS session.js SDK, Mastercard's Payment gateway SDK used to collect sensitive payment details from the payer in fields hosted by the gateway.

The session.js JavaScript SDK allows you to collect sensitive payment details from the payer in fields hosted by the gateway.

Use this library if you want to control the layout and styling of your payment page, while reducing PCI compliance costs. The gateway collects the payment details from the payer and stores them in a payment session.

3 questions
1
vote
0 answers

MPGS error callback url on "Unsuccessful Transaction"

I want Mastercard to redirect to a specific page on transaction being unsuccessful. I am using below API: https://test-gateway.mastercard.com/api/rest/version/{version}/merchant/{merchantId}/session Maybe there is something I can add inside the…
0
votes
0 answers

How to get results in the rerun Url from MPGS?

He integrate MPGS (show checkout page) but we cant get responses in the return Url can someone give us what the PHP code to be add in the checkout page and in the payment results page? Here our checkout page code:
0
votes
1 answer

How to work with MPGS session.js in an SPA

Following the docs from MPGS session we implemented the "session.js" SKD in a Single Page Application (SPA). Some unexpected behaviour takes place... and the SDK malfuncitons as describbed below. As we know modern SPA's add/remove html elements as…