Home > Magento 2 – Mastercard Gateway > Headless API Integration > GraphQL

Magento 2 – Mastercard Gateway

Created date: 24-01-24   |   Updated date: 04-04-25   |   Plugin version: 2.4.5  |   API version: 100

GraphQL

Overview

GraphQL is a query language and runtime for APIs that allows clients to request only the specific data they need. Unlike REST, which often returns fixed structures of data, GraphQL enables clients to define the structure of the response, making it more flexible and efficient. Operations (queries, mutations, and subscriptions) are handled via a single endpoint.

 

This plugin supports a Headless Magento architecture, enabling businesses to decouple the front-end and backend. This approach allows greater customization and flexibility:

 

  • The front-end can be built using modern technologies like React or Angular.
  • The backend Magento admin module handles core payment and transactional functionalities.

Using GraphQL, the plugin facilitates dynamic interactions between the decoupled front-end and backend, ensuring a responsive and tailored user interface.

Please find the Postman collection for GraphQL – link