Update a payment session
Updates an existing payment session with the sessionId specified in the path.
You can update the session's amount and payable fields. The session can only be updated if it is not yet payable.
The amount to update for the payment session.
Indicates if the session is payable. If the payment amount is final, set this to true to indicate that the session is payable, so that the shopper can proceed to submit the payment. When you set this to true, you can no longer update the session.
If you set this to false, you must make another request to update the session and set this to true before the shopper can submit the payment.
The encoded payment session data from the beforeSubmit callback from Drop-in or the Component.
After submitting a call, you receive a response message to inform you that your request was received and processed.
Depending on the HTTP status code of the response message, it is helpful to build some logic to handle any errors that a request or the system may return.
HTTP Responses
200 - OK
The request has succeeded.