Adyen / adyen-salesforce-commerce-cloud

Salesforce Commerce Cloud (formerly Demandware)
MIT License
91 stars 76 forks source link

Error: Wrapped object may not be null due to a missing form element #159

Closed aduponchel closed 4 years ago

aduponchel commented 5 years ago

Environment

Setup

We have installed vanilla SiteGenesis and Adyen cartridge by following the documentation available here : https://docs.adyen.com/plugins/salesforce-commerce-cloud/

Issue

After following Adyen online documentation, we face to an issue.

The form field billing.paymentMethods.creditCard.encrypteddata is mentionned multiple time in code but never exist. It leads to an Error: Wrapped object may not be null.

Adds

<field formid="encrypteddata" type="string" mandatory="false" binding="encrypteddata"/>

to app_storefront_core\cartridge\forms\default\creditcard.xml seems to resolve the issue. But this step is missing from documentation

ScottPowell14 commented 5 years ago

Hi @aduponchel,

The documentation has been updated to reflect the cartridge changes made during an update to Adyen's Checkout API. Unfortunately, this version has not been certified by Salesforce, so we have not performed a release. Please find this code on the develop branch of this repo. The new implementation of Adyen's CSE splits the encrypted card data into 4 separate fields as you can see here: https://docs.adyen.com/plugins/salesforce-commerce-cloud/customize-storefront-code/#formsdefaultcreditcard-xml.

Please use the develop branch for your integration so it is consistent with the docs.

Best, Scott Adyen

aduponchel commented 5 years ago

Hi @ScottPowell14 , Could we have an access to the documentation for the certified version please ? Demandware platform zip contains only an markdown file with only a link to the online documentation.