What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi All, I am triying to add Payone as a payment Provider, i have used this guide:

U02EKGJQV7F
U02EKGJQV7F Posts: 16 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

Hi All,
I am triying to add Payone as a payment Provider, i have used this guide: https://documentation.spryker.com/v4/docs/payone-v1-1, I am only using Paypal and CreditCard.
After implementing the guide i now get this JS error, when i am logged in as a customer: As far as i can tell the error comes from this file: yves_default.payone-credit-card.js

logger.ts:86 [yves_default@error] application error -> Error: form-handler failed to be defined
Cannot read properties of undefined (reading 'call')
    at candidate.ts:53
    at Generator.throw (<anonymous>)
    at asyncGeneratorStep (yves_default.app.js:27246)
    at _throw (yves_default.app.js:27248)

Comments

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Do u have a component molecule form-handler in ShopUi?

  • U02EKGJQV7F
    U02EKGJQV7F Posts: 16 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Yes I do

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    I think that the component behind is this one -> https://github.com/spryker-eco/payone/blob/master/src/SprykerEco/Yves/Payone/Theme[โ€ฆ]t/components/molecules/payone-credit-card/payone-credit-card.ts
    Right?

    I don't see any import of form-handler component and any use of it.. Can u maybe post the js (not minified and not chunked) ?

  • U02EKGJQV7F
    U02EKGJQV7F Posts: 16 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    my file looks excactly like the file in guthub. Attached is the generated one.

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Then maybe the root of the problem is not there... why/how did u say that maybe the js cause the problem?

  • U02EKGJQV7F
    U02EKGJQV7F Posts: 16 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    when i am logged in i get the js error and that seems to break the whole of js โ€ฆ on listing pages no products can be added to cart and in the checkout process the billing address cant be added so i cant order currently. And i wrote that i think that it is that file because the yves_default where the error is happening is generated from that file. I think.

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Lรถffelhardt Spryker Solution Partner Posts: 871 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
    edited September 2021

    ok.. strage.. maybe @UN6T8SEM7 can help u

  • U02EKGJQV7F
    U02EKGJQV7F Posts: 16 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    thank you

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Which version of the payone package you are using? We use 4.4.0 with only paypal and cc and have no problems

  • U02EKGJQV7F
    U02EKGJQV7F Posts: 16 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    it looks like i am using version 4.1 ill try to upgrade thank you. I am working on the b2b demo shop if that is relevant

  • U02EKGJQV7F
    U02EKGJQV7F Posts: 16 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Thank you @UL65CH0MC and @UK7KBE2JW it was all my fault โ€ฆ it was a caching problem ๐Ÿ˜ž