createPayment

This mutation allows the creation of payment for a given invoice.

mutation{
  createPayment(invoiceID:"af7649f8-5c6e-4de4-b688-20a97b316726"paymentMethodID:"b2f5cdfd-3550-47ab-a5a2-e21731724ea7"metadata:{
    creditCardData:{
      keyID:"key1"
      encryptedData:"1"
    }
    destinationAddress:"0xAc14D1dd976B5FE763d50a6e5fDfF0675431AD0F"
  }){
    id
    userID
    invoiceID
    paymentMethodID
    circlePaymentID
    status
  }
}
{
  "data": {
    "createPayment": {
      "id": "1718a465-5870-4391-bc86-e2b0a0c489b2",
      "userID": "196f2a18-30d8-4781-a372-83cdc966004f",
      "invoiceID": "af7649f8-5c6e-4de4-b688-20a97b316726",
      "paymentMethodID": "b2f5cdfd-3550-47ab-a5a2-e21731724ea7",
      "circlePaymentID": "a38b78b8-9ad5-4515-86ec-0f8d225dc128",
      "status": "pending"
    }
  }
}

Arguments

Name

Type

Description

Required

invoiceID

UUID1

The invoice ID.

Yes

paymentMethodID

UUID1

The payment method ID.

Yes

metadata

Object

Contains information from CreatePaymentMetadataInput

Yes

Returns

Name

Type

Description

Payment

Object

Contains all the information from Payment.

Example