Skip to content

vault_exists defaults to true #3

@baldie81

Description

@baldie81

In Everypay/Everypay/view/frontend/web/js/view/payment/method-renderer/everypay.js line 213 in most cases will set the vault_exists variable to true. My workaround was to add another nested if but I think it can be done better.

if (typeof(window.checkoutConfig.customerData.custom_attributes) !== 'undefined') {
    if(typeof(window.checkoutConfig.customerData.custom_attributes.everypay_vault) !== 'undefined') {
        vault_exists = true;
    }
}

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