completeOnchainPayment

This mutation allows the user to create a onchain payment.

Sample mutation

mutation completeOnchainPayment($invoiceId:UUID1!,$networkId:UUID1!,$txHash:String!,$billingDetails:CryptoBillingDetails!){
  completeOnchainPayment(invoiceId:$invoiceId,networkId:$networkId,txHash:$txHash,billingDetails:$billingDetails)
}

Sample variable

{
  "invoiceId":"145a7456-2186-4b45-9b12-f1a281e0863a",
  "networkId":"b260424b-bb37-4a3e-86d0-0866175e5e68",
  "txHash":"0xb53234595df82250f0af9a2c814d3a8c67f01f6c585714382f32d986ef6d34a2",
  "billingDetails":{
    "name":"MohanPrabhu.M",
    "address1":"",
    "address2":"",
    "country":"United States",
    "district":"Back Bay",
    "city":"Boston",
    "postalCode":"02108"
  }
}

Sample response

{
  "data": {
    "completeOnchainPayment": true
  }
}

Arguments

NameTypeDescriptionRequired
invoiceIdUUID1The invoice ID.YES
networkIdUUID1The Network IDYES
txHashStringThe txhash of OnchainPaymentYES
billingDetailsCryptoBillingDetailsContains all the information in CryptoBillingDetailsYES

Fields

TypeDescription
BooleanBoolean Flag which returns the onchain payment status