In production env we created an authorized payment, but failed to cancel it later, we got below error:
[category=INVALID_REQUEST_ERROR, code=BAD_REQUEST, detail=Payment is attached to the order and guaranteed to complete. It cannot be canceled., field=null]
may i know what the detail means? such as, is it caused by any param set in the request of API creating the payment?
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.