Scope:
Prerequisites:
Repository:
OPF Accelerator Add-on SDK repository link GitHub Link.
Architecture:
The difference b/w OPF integration with Composable storefronts and Accelerator storefront is accelerator storefronts directly connects with OPF APIs and composable storefronts connects with commerce cloud adapter APIs which in turns connects with OPF APIs
Install Steps - B2C Accelerator:
ant addoninstall -Daddonnames="opfacceleratoraddon" -DaddonStorefront.yacceleratorstorefront="<your storefront extension name>"<yourcustomstorefront>.additionalWebSpringConfigs.opfacceleratoraddon=classpath\:/opfacceleratoraddon/web/spring/opfb2bacceleratoraddon-web-spring.xml,classpath\:/opfacceleratoraddon/web/spring/multi-step-checkout-config.xmlopfacceleratoraddon/resources/opfacceleratoraddon/impex/opf.impexccAdapter.api.url - Base URL of your OPF cloud connector
ccAdapter.oauth.client-secret.file - ccadapter txt file name from step 4
ccAdapter.oauth.token.url - Token URL for cloud adapter
opf.base.url - OPF tenant base URL
opf.oauth.client-secret.file - Filenames created on step 4
opf.oauth.client-secret.file.location - ${HYBRIS_CONFIG_DIR}/security
opf.oauth.token.url - Token URL for OPF cartPage.jsp: opfacceleratoraddon/acceleratoraddon/web/webroot/WEB-INF/tags/responsive/cart/opfCartCTAScript.tag
productDetailsPanel.jsp: opfacceleratoraddon/acceleratoraddon/web/webroot/WEB-INF/tags/responsive/product/opfProductCTAScript.tag in productDetailsPanel.jspInstall Steps - B2B Accelerator:
ant addoninstall -Daddonnames="opfb2bacceleratoraddon" -DaddonStorefront.yacceleratorstorefront="<your storefront extension name>"<yourcustomstorefront>.additionalWebSpringConfigs.opfb2bacceleratoraddon=classpath\:/opfb2bacceleratoraddon/web/spring/opfb2bacceleratoraddon-web-spring.xml,classpath\:/opfb2bacceleratoraddon/web/spring/multi-step-checkout-config.xmlopfb2bacceleratoraddon/resources/opfb2bacceleratoraddon/impex/b2bopf.impexInstall - OPF order process (SAP OMS or Async order management): Both for B2C & B2B, refer to this link
Install - OPF return process : Both for B2C & B2B, refer to this link
Tax and shipping tax prices: Both for B2C & B2B, modify the following class based on your requirement
customization /custom/opfacceleratorcore/src/de/hybris/platform/populator/OPFPaymentOrderPopulator.java
populateOrderLines()
line.setLineDiscount(0.0); //Set Line discount
line.setLineShFeeTax(0.0); //Set line item shipping fee tax
line.setLineShFeeTaxPercent(0.0); //Set line item shipping fee tax percentage
line.setLineTaxPercent(0.0); //Set line item tax percentage
line.setLineTax(0.0); //Set line item tax
populateOrderDetails()
order.setShFeeWithTax(0.0); //Set shipping fee with tax according to custom implementation
order.setShFeeTax(0.0); //Set shipping fee tax
populateShippingMethod()
shippingMethodData.setShFeeTax(0.0); // Set shipping method shipping fee tax
shippingMethodData.setShFeeWithTax(0.0); //Set shipping method shipping fee with tax
shippingMethodData.setShFeeTaxPercent(0.0); //Set shipping method shipping fee tax percentageNote:
Main advantages of OPF over traditional payment integration approaches:
Important Links
B2C Integration Screenshots:
B2B Integration Screenshots:
Conclusion
Integrate the open payment framework(OPF) with SAP Commerce Cloud to initiate collaboration with payment service providers (PSPs) for your online stores. With the OPF Accelerator Add-on SDK, you can use OPF integrations on legacy accelerator based storefronts quickly, mostly through configuration. Use the steps above to install, configure add optional CTA and Quick Buy experiences.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 21 | |
| 18 | |
| 14 | |
| 12 | |
| 11 | |
| 10 | |
| 9 | |
| 8 | |
| 8 | |
| 8 |