Skip to content

Mollie payment is broken in Shopware Frontends #16

@AlexBa

Description

@AlexBa

Hello together,
unfortunately, the Mollie payment Vue components for Shopware Frontends are not working. e.g. ShopwareFrontendsCreditCard.

The bug

ShopwareFrontendsCreditCard.vue:41 ==> TypeError: Cannot read properties of undefined (reading 'replace')
    at shopwareLocaleToMollieLocale (localeTransformer.mjs?v=76733636:1:80)
    at ShopwareFrontendsCreditCard.vue:32:32

The problem

The problems are the apiClient.invoke calls like apiClient.invoke('getConfig get /mollie/config') (and the other calls in the project) . The response contains a data attribute and we need to consider it while using the key. e.g. it should be config.data.locale instead of config.locale.

Image Image

Local fix

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions