Mastercard Payment Gateway Services integration guide and API samples covering various transactions scenarios.
The following unofficial guide contains a simplified explanation of MPGS. This guide is by no means an exhaustive one and only represents a scenario where the merchant is enabled to use some of the most common features of the Gateway. Additional features may need to be configured separately. Samples are examples for reference only, while configuring your actual live merchants on the platform, always consider the risk and financial impact, as well as your policies and scheme and local rule and regulation. Follow this guide at your own responsibility, and make sure to read the full guide here.
- Comparison of Integration Methods
- Hosted Checkout Integration Method
- Hosted Session Integration Method
- Direct Integration Method
- Mobile SDKs
- Pay with Token
| Hosted Checkout | Hosted Session | Direct |
|---|---|---|
| Mastercard Hosts the full payment page, you just redirect to it. | Card input fields directly linked to Mastercard, you host and customize the payment page. | You host the full system and have full control of it. |
| No PCI-DSS certificate required. | No PCI-DSS certificate required. | PCI-DSS certificate required. |
| Control only logo and merchant name and details branding. | Full branding control. | Full branding and payment experience control. |
| Fastest and simplest to integrate | Developing payment page. | Developing payment page and more API calls. |
| Rendered via Webview | Rendered via Webview | Webview or native experience on any platform. |
| 2 API calls | 3 API calls for a typical transaction | Minimum 3 API calls |
| Unable to access card information | Able to access masked card information (first 6 and last 4 digits). | Able to access full card information. |
| Recommended for Merchants in a hurry | Recommended for merchants that have time for development but are not PCI-Compliant | Recommended for merchant that have time for development and are PCI-Compliant Saving Card |
Short guide for the Hosted Checkout Integration method can be found here.
Short guide for the Hosted Session Integration method can be found here.
Short guide for the Direct Integration method can be found here.