Home > Magento 2 – Mastercard Gateway > Integration Model > Hosted Payment Session Integration

Magento 2 – Mastercard Gateway

Created date: 14-03-23   |   Updated date: 10-04-25   |   Plugin version: 2.4.5  |   API version: 100

Hosted Payment Session Integration

An example of the Hosted Payment Session Integration

The Hosted Payment Session model provides an easy and flexible way to create a checkout experience tailored to your needs. It helps reduce the complexity of meeting PCI compliance requirements, which are rules to keep payment information secure. With this approach, you can control how your payment page looks and functions. This means you can design it to match your brand’s style and give customers a seamless and consistent experience.

How It Works:

  • The Hosted Payment Session JavaScript library helps your website collect sensitive payment information in a safe way. It acts as a secure tool that handles payment data without exposing your servers to risk.
  • The payment fields you see on your checkout page are provided and managed directly by the Mastercard Gateway. This means sensitive details like credit card numbers never go to your servers, keeping them secure.
  • When a customer enters their payment information, the Mastercard Gateway collects it and securely stores it in a temporary payment session. This ensures the data is safe during the process.
  • Instead of sending the actual payment details to process a transaction, you include a payment session identifier in your request. This identifier represents the secure payment details, making the process both simple and secure.

 

To learn about the configuration settings for Hosted Payment Session, click here.