Payment Methods
Use addPaymentMethod
to create a new payment method for a customer. You can then use the paymentMethod
ID in mutations that require a payment method.
Example
Arguments
Name
Type
Required
Description
customer
ID!
Yes
Global ID of the customer who owns the payment method.
paymentMethodType
String!
Yes
fields
[PaymentMethodFieldInput!]!
Yes
Key–value pairs that capture the details required by the rail (see below).
Filling fields
fields
Render inputs for each
field
definition in the chosen payment rail.Collect the user’s answers and map them to
{ identifier, value }
objects.
Example for “GH · MTN Mobile Money”:
Last updated