Uncaught TypeError: Cannot read property 'done' of undefined
    at UiClass.continueToPayPal (paypal-express-abstract.js:80)
    at HTMLButtonElement.<anonymous> (knockout.js:4245)
    at HTMLButtonElement.dispatch (jquery.js:5232)
    at HTMLButtonElement.elemData.handle (jquery.js:4884)

enter image description here

when I have click on the PayPal Express Checkout button page is not redirect and show me the error in the console any one idea why to show this error.

  • are you able to fix this issue ?
    – Dexture
    Commented Nov 24, 2020 at 19:40
  • did you get any solution? Commented May 21, 2021 at 10:28
  • yes, comment the done function than working this is a temporary solution. Commented May 24, 2021 at 3:40

1 Answer 1


I fixed, i use One Step Checkout from BSS COMMERCE. The file located in Bss/OneStepCheckout/view/frontend/web/js/action set-payment-information-extended.js problems with serviceUrl I removed it in the if and i removed the other control now it works.

     * Checkout for guest and registered customer.
        if (!customer.isLoggedIn()) {
        serviceUrl = urlBuilder.createUrl('/guest-carts/:cartId/set-payment-information', {
            cartId: quote.getQuoteId()
        payload.email = quote.guestEmail;
    } else {
        serviceUrl = urlBuilder.createUrl('/carts/mine/set-payment-information', {});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.