Git Product home page Git Product logo

connect-extension-magento2-graphql's Introduction

Ingenico Connect GraphQL Module for Magento 2

This module adds GraphQl support to the Ingenico Connect Module for Magento 2.

Please note that this module is currently in 0.x-release and should therefor be considered 'unstable'. This does not mean that the module will not work as expected but that it's public API is not definitive yet.

Usage

This module adds an option to GraphQl to generate a consumer session that you can use with the Ingenico mobile and browser SDK's.

Installation instructions

This module can be installed using Composer:

composer require ingenico-epayments/connect-extension-magento2-graphql

Example

The following GraphQl query will create a consumer session with Ingenico:

{
  ingenicoClientSession {
    assetUrl
    clientApiUrl
    clientSessionId
    customerId
    invalidTokens
    region
  }
}

Example response:

{
  "data": {
    "ingenicoClientSession": {
      "assetUrl": "https://assets.pay1.preprod.secured-by-ingenico.com/",
      "clientApiUrl": "https://ams1.preprod.api-ingenico.com/client",
      "clientSessionId": "ccf8ee1015944ab09e053411e683b43f",
      "customerId": "11492-214bf4b4d0db4321a5e006e0ec6f080b",
      "invalidTokens": null,
      "region": "EU"
    }
  }
}

Registered Customers in Magento

If you're making a request for a registered customer in Magento (a customer that is currently logged in), please make sure that you've generated a customer token and included it in the HTTP Headers.

connect-extension-magento2-graphql's People

Contributors

ingenicoepayments avatar rikvanthof avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.