Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing payment icon - critical exception breaks checkout #1778

Closed
devetus opened this issue Oct 19, 2022 · 9 comments
Closed

Missing payment icon - critical exception breaks checkout #1778

devetus opened this issue Oct 19, 2022 · 9 comments
Assignees
Labels
Bug report Indicates that issue has been marked as a possible bug

Comments

@devetus
Copy link
Contributor

devetus commented Oct 19, 2022

Checkout page crashes for a logged in customer because of a missing icon asset mc_applepay_small.png. Probably all Apple Pay variants are affected.

Magento version
2.4.5-p1

Plugin version
8.7.0

Error log
==> system.log <==
[2022-10-19T14:35:56.623693+00:00] report.CRITICAL: Magento\Framework\View\Asset\File\NotFoundException: Unable to resolve the source file for 'frontend/handh/cbii/en_GB/Adyen_Payment/images/logos/mc_applepay_small.png' in vendor/magento/framework/View/Asset/File.php:161
Stack trace:
#0 vendor/adyen/module-payment/Helper/Data.php(1654): Magento\Framework\View\Asset\File->getSourceFile()
#1 generated/code/Adyen/Payment/Helper/Data/Interceptor.php(608): Adyen\Payment\Helper\Data->getVariantIcon()
#2 vendor/adyen/module-payment/Model/Ui/AdyenUiComponentProvider.php(47): Adyen\Payment\Helper\Data\Interceptor->getVariantIcon()
#3 vendor/adyen/module-payment/Model/Ui/TokenUiComponentProvider.php(32): Adyen\Payment\Model\Ui\AdyenUiComponentProvider->getCardComponentForToken()
#4 vendor/magento/module-vault/Model/Ui/TokensConfigProvider.php(87): Adyen\Payment\Model\Ui\TokenUiComponentProvider->getComponentForToken()
#5 vendor/magento/module-checkout/Model/CompositeConfigProvider.php(39): Magento\Vault\Model\Ui\TokensConfigProvider->getConfig()
#6 vendor/magento/module-checkout/Block/Onepage.php(106): Magento\Checkout\Model\CompositeConfigProvider->getConfig()
#7 vendor/magento/module-checkout/Block/Onepage.php(128): Magento\Checkout\Block\Onepage->getCheckoutConfig()
#8 /var/view_preprocessed/pub/static/vendor/magento/module-checkout/view/frontend/templates/onepage.phtml(6): Magento\Checkout\Block\Onepage->getSerializedCheckoutConfig()

@devetus devetus added the Bug report Indicates that issue has been marked as a possible bug label Oct 19, 2022
@Morerice
Copy link
Contributor

Hi @devetus,

Thanks for opening this issue. Could you please find the vault_payment_token table and check if there is an entry where the details field contains mc_applepay?

Thanks,
Jean
Adyen

@devetus
Copy link
Contributor Author

devetus commented Oct 21, 2022

Hi @Morerice, yes we do have few records like that. Please note this is in Test mode so no live hashes below:
image
We were testing latest module in our staging environment.

@Morerice
Copy link
Contributor

Thanks for your quick reply,

In that case we know the cause of the issue. However, based on the functionality we have at this time and our tests, it shouldn't be possible for now to create a token trough applepay.

Were there any modifications to this class from your end?

Thanks,
Jean
Adyen

@Morerice Morerice self-assigned this Oct 21, 2022
@devetus
Copy link
Contributor Author

devetus commented Oct 21, 2022

No modifications to this area from our end. We were turning tokenization options on and off for Alternative Payment Methods config.
One thing to note is that we keep payment methods config set on website scope level as we run different websites and Adyen payments are only available on one of them.

@Morerice
Copy link
Contributor

Morerice commented Oct 21, 2022

Ok, in that case I'm not sure how a token with mc_applepay was created. Another question, could you please check the value in the core_config_data table of the following path? payment/adyen_hpp/tokenized_payment_methods

Thanks,
Jean
Adyen

@devetus
Copy link
Contributor Author

devetus commented Oct 21, 2022

Currently it is set as below
image
We had all options selected before, including Paypal and SEPA direct debits although we don't use them or have active in Adyen dashboard. Since the problem started with that particular user account we disabled Alternative Payment Methods tokenization completely and then switch to GooglePay tokenisation only but the template was still looking for mc_applepay icon. Basically tried different configuration options and run tests with various sandbox credit cards, but not sure why mc_applepay record got created.

@Morerice
Copy link
Contributor

All the entries requested show the expected data. So as you said the question is how those mc_applepay entries got created. Could we maybe shift this conversation trough our support team, by contacting support@adyen.com? Please include a link to this issue in your message

This would enable us to share some pspReferences of the transactions that created these tokens so that maybe we can identify if it is an adyen module related issue or if it is something else.

Thanks,
Jean
Adyen

@devetus
Copy link
Contributor Author

devetus commented Oct 21, 2022

Sure, I've created support request #3381591 and sent more details including PSP
Thanks, Michal

@Morerice
Copy link
Contributor

Morerice commented Nov 3, 2022

Hi,

Based on the conversation in the internal ticket, this issue was caused by enabling the enableRecurring toggle on Adyen customer area. This is a toggle that is currently deprecated and will be removed in the near future. To disable such option, login to the Adyen Customer Area, go to Settings > Merchant Settings and deselect this toggle.

enableRecurring

Regards,
Jean
Adyen

@Morerice Morerice closed this as completed Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Indicates that issue has been marked as a possible bug
Projects
None yet
Development

No branches or pull requests

2 participants