Closed youanden closed 2 years ago
Hello @youanden ,
Thank you for raising the issue, that was a bit of unfortunate timing regarding the release of GraphQL functionality at the same time we had been working on refactoring the button rendering logic in a standard Magento frontend... We may decide to take a different approach than the temporary solution I'm providing, but for now, the attached patch file should resolve the issue you found. This is simply adding another optional parameter to the config query (omitPayloads
) that will default to false
if not provided, which is the same way the rest endpoint currently behaves.
Please let us know if this helps, and thank you again for bringing it up! gh-1129.patch.txt
fixed released on 5.13.1: https://github.com/amzn/amazon-payments-magento-2-plugin/releases/tag/5.13.1
What I expected
When calling
checkoutSessionConfig
I expected to see the Amazon_payload
and_signature
fields, but they were null for my cart.What happened instead
Upon investigating, the Resolver located at
vendor/amzn/amazon-payments-magento-2-plugin/Model/Resolver/CheckoutSessionConfig.php
is not passingfalse
as the second parameter, which in turn doesn't merge the result array with the_payload
and_signature
data.Steps to reproduce the issue
Your setup