Skip to main content
Skip to main content

updatePayment - Payment Module Reference

This documentation provides a reference to the updatePayment method. This belongs to the Payment Module.

This method updates an existing payment.

Example

const payment = await paymentModuleService.updatePayment({
id: "pay_123",
customer_id: "cus_123",
})

Parameters

dataUpdatePaymentDTORequired
The attributes to update in the payment.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<PaymentDTO>Required
The updated payment.
Was this section helpful?