Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 776 Bytes

README.md

File metadata and controls

38 lines (34 loc) · 776 Bytes

Adyen GrahpQl

adds support for graphql to the adyen magento 2 module

Request Example

mutation (
  $cartId: String!,
  $paymentMethodCode: String!,
  $creditCardNumer: String!,
  $creditCardCvc: String!,
  $creditCardExpiryMonth: String!,
  $creditCardExpireYear: String!,
  $creaditCardType: String!
) {
  setPaymentMethodOnCart(input: {
      cart_id: $cartId
      payment_method: {
          code: $paymentMethodCode
          adyen_cc: {
            number: $creditCardNumer
            cvc: $creditCardCvc
            expiryMonth: $creditCardExpiryMonth
            expiryYear: $creditCardExpireYear
            cc_type: $creaditCardType
          }
      }
      
  }) {
    cart {
      selected_payment_method {
        code
      }
    }
  }
}