Skip to content

Commit

Permalink
Revert "Add orderId to success/error callbacks" (#89)
Browse files Browse the repository at this point in the history
* Revert "Add orderId to success/error callbacks (#88)"

This reverts commit f26a2a1.
  • Loading branch information
andrewbents authored Nov 12, 2024
1 parent f26a2a1 commit f624bff
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit f624bff

Please sign in to comment.