Skip to content

Commit

Permalink
Add AdyenCheckoutError definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Jan 23, 2024
1 parent 7e714c4 commit cc79b55
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion js/src/checkout-drop-in.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
/* global AdyenCheckout, pronamicPayAdyenCheckout */

/**
* Adyen checkout error definition.
*
* @see https://github.com/Adyen/adyen-web/blob/v5.57.0/packages/lib/src/core/Errors/AdyenCheckoutError.ts
* @typedef AdyenCheckoutError
* @type {Object}
* @property {string} name - Adyen error name.
* @property {string} message - Adyen error message.
*/

'use strict';

( async function () {
Expand All @@ -23,7 +33,7 @@
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
* @see https://github.com/Adyen/adyen-web/blob/v5.15.0/packages/lib/src/core/Errors/AdyenCheckoutError.ts
* @see https://github.com/Adyen/adyen-web/blob/v5.15.0/packages/lib/src/components/UIElement.tsx#L115-L126
* @param AdyenCheckoutError error Adyen checkout error.
* @param {AdyenCheckoutError} error Adyen checkout error.
*/
onError: ( error ) => {
if ( 'CANCEL' === error.name ) {
Expand Down

0 comments on commit cc79b55

Please sign in to comment.