Enabling 'Advanced Checkout Page' in Advanced EU Compliance hides some payment methods



  • In 1.0.2, some payment methods are not shown when I activate ‘Advanced Checkout Page’ in the Advanced EU Compliance module.

    The payment method, a third party module, is in the hook area ‘displayPaymentEU’.

    Is there anything else I need to pay attention to so that the payment method shows?



  • Nobody?



  • Not familiar with your EU payments module but my offline credit card module requires three hooks or else it won’t work.

    displayadminorder
    displaypayment
    displaypaymentreturn


  • administrators

    Only modules with displayPaymentEU hook will work. Or have you lost modules since the update? Also double check if the module is poisitioned at that hook.



  • @mdekker Ah, then the module probably doesn’t have that hook. Is it an easy fix, just insert a piece of code somewhere in the module?



  • The displayPaymentEU hook first came along with EU legal, the (German) previous version to the (French) Advancedeucompliance. For people with German language skills it may be helpful to read Chris Gurk’s excellent documentation.
    Here you’ll find a description how it works and what all the hooks of AEUC are good for.
    displayPaymentEU will be hooked by AEUC during installation. So in some cases it is sufficient to reinstall or refresh the formerly installed payment modules so that they can be integrated. In other cases it is necessary to rework the payment modules’ hooks, too.



  • The module has the displayPaymentEU hook, so it looks like it is something else. Any ideas on how to figure out what it might be? It’s only the Advanced AEUC checkout where the payment method isn’t shown. It’s shown on the standard AEUC checkout.



  • Afaik every payment module has to be initiated by AEUC. Is it listed in function registerModulesBackwardCompatHook of advancedeucompliance.php?



  • When setting up the AEUC and the native Stripe module, I do not see all Stripe options in the order completion.

    1_1501604804487_FireShot Capture 30 - Bestellung - Heimtierb_ - https___heimtierbedarf-service.de_schnell-bestellung.png 0_1501604804486_FireShot Capture 29 - Modules • Heimti_ - https___heimtierbedarf-service.de_admin9475fmmae_index.php.png


  • administrators

    We skipped those on the advanced checkout page at the time, because it wasn’t possible to initialize those payment methods via PHP. Let me check the current status…


  • administrators

    Should be possible now according to the documentation. Update scheduled for this month.



  • @mdekker
    That would be great, because the module is with a small reason, why I would switch to TB.


  • administrators

    Stripe has been updated to add those payment methods to the eu checkout. Alipay is now available as a general payment method as well if you can get it activated in your Stripe account.



  • @mdekker many thanks michael - it looks good, but i have 2 divs with stripe now - test in 2 shops

    0_1501694765408_FireShot Screen Capture #224 - 'Bestellung - Heimtierbedarf Service' - heimtierbedarf-service_de_schnell-bestellung.png


  • administrators

    Then you have activated both the Stripe checkout and credit card form.



  • @mdekker :drum: :thumbsup:
    thanks - must clean my glasses :zipper_mouth:


  • administrators

    :stuck_out_tongue:



  • @Occam Thanks, a good tip!

    So, it looks like the Bitcoin HD module was based on the “Pay by Check” module. I found this in it’s file:

    public function hookDisplayPaymentEU($params)
        {
            if (!$this->active || !$this->checkCurrency($params['cart']) || !$this->checkConfiguration()) {
                return;
            }
    
            $payment_options = array(
                'cta_text' => $this->l('Pay by Check'),
                'logo' => Media::getMediaPath(_PS_MODULE_DIR_ . $this->name . '/cheque.jpg'),
                'action' => $this->context->link->getModuleLink($this->name, 'validation', array(), true)
            );
    
            return $payment_options;
        }
    

    And then I also noticed that the payment method “Pay by Check” is shown, even though I don’t have it activated. It turns out the AEUC translation label for the module is “Pay by Check”. I changed that now to “Pay by Bitcoin” and the payment method is shown now in AEUC as “Pay by Bitcoin”.

    Do let me know if there is anything else I should do to clean the module up a bit.



  • Also, why do the payment methods look (different logos) and why are they named differently depending on whether ‘Advanced Checkout Page’ in the Advanced EU Compliance module is activated? Shouldn’t their names and logos be consistent throughout?



  • That’s strange, because AEUC just uses the modules’ file displayPaymentInfo.tpl in this place. Therefor you need to check if all files provide the same informations.


Log in to reply
 

Looks like your connection to thirty bees forum was lost, please wait while we try to reconnect.