patch https://{environment}.joinforage.app/api/orders//payments//
Update OrderPayment Server-Side Only
OrderPayment Server-Side OnlyTo keep your app secure, requests to update an OrderPayment should only be generated on the server-side.
A PATCH request to /orders/{order_ref}/payments/{payment_ref}/ updates an existing Forage OrderPayment.
On success, the API responds with the updated OrderPayment object.
The status property of the OrderPayment determines what data can be updated. If the status is processing, canceled, or succeeded, then only the following Payment fields can be modified:
metadataexternal_order_id
During these statuses, Forage ignores attempts to update other OrderPayment fields.
