Update
class Update(val paymentMethodsApiResponse: PaymentMethodsApiResponse, val order: OrderResponse?) : DropInServiceResult
Only applicable for partial payments flow.
Update Drop-in with a new list of payment methods and optionally an order.
After submitting a partial payment, you might need to call /paymentMethods again with the new remaining amount, and pass the updated payment methods list, alongside the latest order object.
Also after cancelling an order, you need to call /paymentMethods again with the original payment amount, and pass the updated payment methods list, with a null order object.
Use OrderResponse.SERIALIZER to deserialize your JSON response string.
Parameters
paymentMethodsApiResponse
the updated payment methods list.
order
the order object returned from the backend, or null if an order was cancelled.