cancel
Showing results for 
Search instead for 
Did you mean: 

DisplayName of a Payment Type is not coming in the B2B Storefront CheckoutPage.

Former Member
0 Kudos

In the B2B storefront i wanted to add one more payment type Paypal apart from the Account and Card Paymnet. So i added the payment type enum in b2bacceleratoreservices-items.xml and i am getting the code and type but i am not able to get the displayName.

 public void populate(final CheckoutPaymentType source, final B2BPaymentTypeData target)
 {
     CheckoutPaymentType checkoutPaymentTypeValue = source;


     if (checkoutPaymentTypeValue == null)
     {
         checkoutPaymentTypeValue = CheckoutPaymentType.ACCOUNT;
     }
     target.setCode(checkoutPaymentTypeValue.getCode());
 target.setDisplayName(getTypeService().getEnumerationValue(checkoutPaymentTypeValue).getName());

 }

this is the code to populate the data. but I am getting the null value for displayname for Paypal.

Please help.

Former Member
0 Kudos

Mohan Did you get your question answered?

-Chuck

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member469962
Contributor
0 Kudos

Hi,

Have you tried localizing the enum? You could do so by adding the following string into your <extension>-locales_<lang&#62.properties.

type.CheckoutPaymentType.ACCOUNT.name=Account Display name

Hope this helps.

Regards, Shwetha