Skip to content

Commit

Permalink
AD-335 Add Google Pay Express Button with Frontend Logic and API Call…
Browse files Browse the repository at this point in the history
…s to CMS Components on PDP and Cart Pages - add jalo classes
  • Loading branch information
pjaneta committed Oct 23, 2024
1 parent daa0dbf commit cc9c862
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.adyen.v6.jalo.contents.components;

import de.hybris.platform.jalo.Item;
import de.hybris.platform.jalo.JaloBusinessException;
import de.hybris.platform.jalo.SessionContext;
import de.hybris.platform.jalo.type.ComposedType;
import org.apache.log4j.Logger;

public class AdyenAccExpressCheckoutCartPageComponent extends GeneratedAdyenAccExpressCheckoutCartPageComponent
{
@SuppressWarnings("unused")
private static final Logger LOG = Logger.getLogger( AdyenAccExpressCheckoutCartPageComponent.class.getName() );

@Override
protected Item createItem(final SessionContext ctx, final ComposedType type, final ItemAttributeMap allAttributes) throws JaloBusinessException
{
// business code placed here will be executed before the item is created
// then create the item
final Item item = super.createItem( ctx, type, allAttributes );
// business code placed here will be executed after the item was created
// and return the item
return item;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.adyen.v6.jalo.contents.components;

import de.hybris.platform.jalo.Item;
import de.hybris.platform.jalo.JaloBusinessException;
import de.hybris.platform.jalo.SessionContext;
import de.hybris.platform.jalo.type.ComposedType;
import org.apache.log4j.Logger;

public class AdyenAccExpressCheckoutProductPageComponent extends GeneratedAdyenAccExpressCheckoutProductPageComponent
{
@SuppressWarnings("unused")
private static final Logger LOG = Logger.getLogger( AdyenAccExpressCheckoutProductPageComponent.class.getName() );

@Override
protected Item createItem(final SessionContext ctx, final ComposedType type, final ItemAttributeMap allAttributes) throws JaloBusinessException
{
// business code placed here will be executed before the item is created
// then create the item
final Item item = super.createItem( ctx, type, allAttributes );
// business code placed here will be executed after the item was created
// and return the item
return item;
}

}

0 comments on commit cc9c862

Please sign in to comment.