Skip to Content
author's profile photo Former Member
Former Member

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

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;


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

Please help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 18, 2015 at 10:42 AM


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

    Hope this helps.

    Regards, Shwetha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.