Cancel Payment
Use the cancelHostedPayment
mutation to cancel a hosted payment that is still in the created
state.
mutation {
cancelHostedPayment(
paymentRequest: "VHlwZXM6OkNhc2hyYW1wOjpBUEk6Ok1lcmNoYW50UGF5bWVudFJlcXVlc3QtMTFlZDhkZjUtZDI4Ni00MTI3LWJjZjktMTA3NTFkZTYxN2I4"
)
}
Argument
Name
Type
Required
Description
paymentRequest
ID!
Yes
Global ID of the hosted-payment request to cancel.
You can only cancel requests whose status
is created
.
Once a payment has progressed to picked_up
, completed
, or canceled
, it can no longer be voided with this mutation.
Last updated