chameleon-system/pkgshoppaymentpayone

This package is abandoned and no longer maintained. The author suggests using the chameleon-system-private/pkgshoppaymentpayone package instead.

TODO

7.1.5 2022-12-22 10:19 UTC

README

Installation

  • Add the bundle to your AppKernel (\ChameleonSystem\ShopPaymentPayoneBundle\ChameleonSystemShopPaymentPayoneBundle())
  • The following 5 bundles also need to be added: \ChameleonSystem\CmsAddressValidationBundle\ChameleonSystemCmsAddressValidationBundle() \ChameleonSystem\CmsCreditCheckBundle\ChameleonSystemCmsCreditCheckBundle() \ChameleonSystem\ProductShippingCostPreviewBundle\ChameleonSystemProductShippingCostPreviewBundle() \ChameleonSystem\ShopAddressValidationBundle\ChameleonSystemShopAddressValidationBundle() \ChameleonSystem\ShopCreditCheckBundle\ChameleonSystemShopCreditCheckBundle()
  • Provide an update that adds the views to the snippet chain; i.e. TCMSLogChange::addToSnippetChain('@ChameleonSystemShopPaymentPayoneBundle/Resources/views', '@ChameleonSystemAmazonPaymentBundle/Resources/views')
  • At least the following view needs special care (provide it in your theme): pkgShopPaymentPayone/handler/payone_creditCard-iframe.html.twig Maybe copy it from another project (Streit?) and adapt the form elements and styling.
  • Create this file link: web/assets/pkgShopPaymentPayone -> ../../vendor/chameleon-system/pkgshoppaymentpayone/Resources/assets.

Make sure you add the following to your /customer/src/Esono/CustomerBundle/extensions/library/classes/pkgShop/views/db/TShopOrderStep/TShopStepConfirm/confirm.view.php inside the form being submitted when the user confirms the order

<?php
    echo $oPaymentMethod->renderConfirmOrderBlock($oUser);
?>

Configuration

Some configuration options need to be provided: Checkout > Payment providers > PAYONE > System > Configuration (at least probably "merchant", "portal", "security_key"). These must be obtained from the Payone page.

Connection with shipping groups

Either as update or manually: Connect some payment methods to some shipping groups (Shipping groups > ... > Payment methods). NOTE Quite a few (but not all) payment methods have a dynamic id, especially Paypal, so your update needs to determine their id dynamically or this still needs to be done manually on each server (Search for "TTools::GetUUID()" in /vendor/chameleon-system/pkgshoppaymentpayone).

Sandbox mode

You can activate the Sandbox mode under Checkout > Payment providers > PAYONE > System > Environment. This is normally "Default" which works for Live and development systems but on test servers this needs to be explicitely set to "Sandbox".

Important Notes

CreditCard 3DS Risk Indicator Data

To prevent showing 3DS verification to the customer, the bundle adds additional risk indicator data to the credit card payment request. The bundle only provides standard data. For some fields you may need to add custom data providers, because they are shop dependent. You can find an overview of all fields here https://docs.payone.com/display/public/PLATFORM/merchantRiskIndicator.