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

V24.2.0 #5

Merged
merged 6 commits into from
Apr 17, 2024
Merged

V24.2.0 #5

merged 6 commits into from
Apr 17, 2024

Conversation

GayatriSasanam
Copy link
Contributor

Code and documentation changes for v24.2.0

@cybersource-tpi cybersource-tpi merged commit 4406e5d into CyberSource:master Apr 17, 2024
@cybersource-tpi cybersource-tpi deleted the v24.2.0 branch April 17, 2024 20:30
@@ -259,30 +266,12 @@
<externally-managed-flag>false</externally-managed-flag>
<default-value>false</default-value>
</attribute-definition>
<attribute-definition attribute-id="Cybersource_CruiseApiKey">
Copy link

@moorena moorena Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya'll removed these cruise definitions from the system-objects (ie here)
You removed them from cartridges/int_cybs_sfra_base/cartridge/configuration/preferences/customPreferences.js

but did not update:
cartridges/int_cybs_sfra_base/cartridge/configuration/index.js
which still has code like:
payerAuthenticationCruiseAPIKey: config.payerAuthenticationCruiseAPIKey || customPreferences.PayerAuthentication.Preferences.CruiseAPIKey.getValue(),

And that's causing some null pointer issues on a clean system

A system w/ a previously installed version of this cartridge will work because this system object definition will still be there Edited to strike this statement, it is not correct. The current code will not run at all, period, because the config structure will have missing/undefined elements.

}
}
if (order.paymentInstruments[0].paymentMethod === 'CREDIT_CARD') {
if (dw.system.Site.getCurrent().getCustomPreferenceValue('Cybersource_CreditCardTransactionType').value === 'sale' ){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configuration value inside:
link_cybersource\metadata\payments_metadata\meta\Core.xml
is defined as Cybersource_CardTransactionType and not Cybersource_CreditCardTransactionType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants