diff --git a/src/types.ts b/src/types.ts index d4078fc..6de6461 100644 --- a/src/types.ts +++ b/src/types.ts @@ -426,12 +426,9 @@ export interface CommonOptions { /** Controls the language of the text in the widget method */ locale?: Locale | 'auto' /** Callback will be called when the payment is completed successfully */ - onSuccess?: (payload: { orderId: string }) => void + onSuccess?: () => void /** Callback if transaction is failed to complete, the reason should be available in the message parameter */ - onError?: ( - error: RevolutCheckoutError, - payload: { orderId: string | undefined } - ) => void + onError?: (error: RevolutCheckoutError) => void /** Callback if an user did not complete the transaction and canceled the authorisation or closed the checkout window */ onCancel?: () => void /** Indicates in which case this saved payment method can be used for payments */