Home > Magento 2 – Mastercard Gateway > Integration Model > Hosted Checkout Integration

Magento 2 – Mastercard Gateway

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

Hosted Checkout Integration

The Hosted Checkout model makes payments easy and secure. With this setup, the Mastercard Gateway handles the payment process through its own secure interface. This means sensitive details like card information never touch or get stored on your servers. Instead, the customer’s payment data goes directly and securely from their browser to Mastercard, keeping everything compliant with security standards.

Key Features:

  • Secure and Simplified: The payment interface is managed entirely by Mastercard. This reduces the work you need to do for PCI compliance.
  • User-Friendly: Customers enjoy a straightforward and user-friendly payment interface thoughtfully designed to make the checkout process smooth and stress-free. The interface is intuitive, guiding customers effortlessly for a quick and seamless experience.

Checkout Form Options:

When setting up Hosted Checkout, you have two options for the type of checkout form to use. The choice depends on how you want your customers to move through the checkout process. Each form type is designed to support different user flows, so you can select the one that best fits your needs.

Embedded Form:

Embedded Form
  • This option places the Mastercard’s payment form as an iFrame or inline frame directly on your website in the Payment Options section.
  • Customers can enter their card details right there, without being redirected to another page or website.
  • This makes the payment process smooth and keeps them engaged with your site. It’s a convenient and user-friendly way to collect payments securely.

Redirect to Payment Page:

Redirect to Payment Page
  • With this option, when customers are ready to pay, they are taken to a secure payment page hosted by Mastercard. This means the payment process happens on Mastercard’s website instead of the merchant’s site.
  • This ensures a smooth and safe payment experience for both the merchant and the customer.

 

The advantages of this option are:

 

  • Simplicity: Merchants don’t need to design their own payment forms.
  • Security: Mastercard handles the security measures, so merchants don’t have to worry about protecting payment information.
  • Ease of Use: It’s ideal for businesses that prefer to focus on their main website without managing the complexities of payment processing.

Both options ensure that payment data is handled securely. They are built to reduce technical challenges while keeping security strong. This approach also helps build customer trust, as they can feel confident their payment information is safe.

 

Embedded forms are ideal for businesses that want to maintain strong branding.

 

On the other hand, the Redirect to Page option is a better choice for those who prefer a simple setup. It allows you to outsource the security management to the platform, making it easier and less time-consuming to handle.

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