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
Name | Type | Description | Required |
---|---|---|---|
invoiceId | UUID1 | The invoice ID. | YES |
networkId | UUID1 | The Network ID | YES |
txHash | String | The txhash of OnchainPayment | YES |
billingDetails | CryptoBillingDetails | Contains all the information in CryptoBillingDetails | YES |
Fields
Type | Description |
---|---|
Boolean | Boolean Flag which returns the onchain payment status |