Jump to content

Bankwire and address_invoice


Recommended Posts

Hello,

I work with Prestashop 1.6 and the basic free bankwire module. I need to retrieve the billing address at the end of the payment process to use info from it such as (name, firstname, address1, address2....).

 

If a client creates two different addresses : 1 billing address and 1 shipping address.

The bankwire uses automatically the shipping address. I tried to retrieve the billing address inside the module with : 


    public function hookPaymentReturn($params)
    {
        if (!$this->active)
            return;

        $state = $params['objOrder']->getCurrentState();

if (in_array($state, array(Configuration::get('PS_OS_BANKWIRE'), Configuration::get('PS_OS_OUTOFSTOCK'), Configuration::get('PS_OS_OUTOFSTOCK_UNPAID'))))
        {
            $billing_address = new Address($this->context->cart->id_address_invoice);

 

but the result of $billing_address is the shipping address.

Do you have an idea ?

Best regards

 

I noticed some talked already about it : 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...