Payment methods

Payment methods queries  are used for getting information about available payment methods.

In the examples there are // comments serving as an additional information to specific part of the code. Remove them before sending a query. Otherwise, it will throw an error.

Queries

Find available payment methods

query findPaymentMethods($input: FindPaymentMethodsQueryInput!){
  findPaymentMethods(input: $input) {
    paymentMethods {
      id
      name
      description
      image
      price
    }
  } 
}

with variables:

{
  "input": {
    "token": "__YOUR_STORE_TOKEN_HERE__",
    "onlyEnabled": true
  }
}

 

Create E-commerce in 5 minutes

Try it. It is for free.