Schogini - Amazon AWS, Magento and Mobile Developers
 

Magento 2 First Data Global Gateway e4 Hosted Payment Page

Magento Commerce is the leading provider of open omnichannel innovation. Its an open source, cloud-based digital commerce platform and omnichannel solutions empowers merchants to integrate digital and physical shopping experiences. Built for rapid innovation, the platform combines rich, out-of-the-box functionality with powerful business tools. This customizable platform seamlessly integrates with third-party solutions, can be deployed in any environment, and is backed by a vast network of commerce experts ready to help you.

A Global Gateway e4℠ Payment Page is a securely hosted web payment form designed to accept Internet-based E-commerce transactions. With Global Gateway e4℠ Payment Pages in place a merchant is no longer exposed to the sensitive payment details required to process a payment. Additionally, the merchant has access to an expanding toolkit of payment options and fraud prevention tools without the need for additional development.

Objective:

Client needed a payment solution where customer’s payment information does not enter their servers. This will allow easier PCI compliance. The module should redirect the buyer to the external payment form and bring them back to the shop smoothly, properly alerting the buyer of any issues reported during payment processing.

Schogini’s Role:

Integrating First Data Global Gateway e4 Hosted Payment Page into Magento 2 allowing the client to process payments externally through payment forms hosted on First Data servers.

Schogini’s Solution:

Developed a Magento 2 payment module that will show the buyer the First Data payment option and when selected redirect the customer to the First Data server to complete the payment. To be able to redirect the module has to complete a few authentication steps and pass the correct data to First Data to correctly display the amounts. The module will send a correctly formatted return URL to First Data during redirect so that the response can be captured, processed and the order can be placed. To the customer, it will look like they reached the order succes page directly after successful payment.

Issues Faced:

  • The order session needed to be correctly saved before redirect. This will prevent “Shopping cart empty” error when the customer is redirected back to the shop with the gateway response (whether success or failure)
  • On failure, the module needed to redirect to the shopping cart page (instead of the success page) and show the error reported by the payment gateway. At this stage we needed to cancel the previous session, repopulate the shopping cart and show the error as a flash message.
  • Since this is a redirect module, the credentials cannot be used process payments later - for example, capture, void, refund. For this the API credentials are needed.

Client Benefit:

The client is able to process payments online while reducing the PCI compliance steps since, no sensitive data enters their shop. A another great advantage is that latest First Data Global Gateway e4 features are available to the client without any change in code.

Author

Gayatri S Ajith - CEO/Cloud & DevOps Architect
Gayatri is a certified professional and highly experienced OpenSource eCommerce developer, team lead, and project manager. She is Magento Certified Developer Plus and Magento Certified Solutions Specialist. With over a decade of hands-on development experience in web technologies (LAMP & MEAN), she has a strong technical background with the ability to communicate those technicalities frequently and clearly. Gayatri is comfortable in proposing alternatives when necessary to ensure the client goals are met - always. Currently, she is mastering AngularJS & Ionic while heading the eCommerce division of Schogini.
Know more about the author.
 
 
 

CONTACT US

We love to talk to you, all enquires are replied to in under 4 hours.