This mutation allows the user to create a payment method.
Sample mutation
mutation createPaymentMethod($orgID:UUID1!,$input:PaymentMethodCreateInput!){
createPaymentMethod(orgID:$orgID input:$input){
... on OnchainPaymentMethodOutput{
id
type
status
}
}
}
Sample variable
{
"orgID": "5a198d09-e243-491f-991a-f79e1cecdcc3",
"input": {
"paymentType": "OnchainPayment"
}
}
Sample response
{
"data": {
"createPaymentMethod": {
"id": "93f24c5e-2e87-4e02-ae67-fa4147bd3214",
"type": "OnchainPayment",
"status": "complete"
}
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
orgID | UUID1 | The organization ID. | Yes |
input | Object | The input to create payment method. | Yes |
Fields
Name | Type | Description |
---|---|---|
PaymentMethodOutput | Object | Contains information from CreditCardPaymentMethodOutput , ACHPaymentMethodOutput ,CryptoPaymentMethodOutput and WirePaymentMethodOutput . |