Jump to content
koala77

How to tie billing address with payment method?

Recommended Posts

Hi, couldn't find similar topic or problem anywhere.

My problem is, that if shipping and billing addresses are different, the one connected with payment method is a shipping address, which makes no sense.

I want to use bank transfer only in my country. Many people live abroad now or have friends there, but still, have their bank accounts in origin country and it's the easiest and most popular payment method.

 

Is there any way to connect billing/invoice address with payment methods (all of them)?

Share this post


Link to post
Share on other sites

perhaps it is an issue with the payment module you are using?  Where exactly are you seeing the 'the one connected with payment method is a shipping address'?

Share this post


Link to post
Share on other sites

perhaps it is an issue with the payment module you are using?  Where exactly are you seeing the 'the one connected with payment method is a shipping address'?

I'm using standard Prestashop bank wire module. When I set my addresses in my account or during a checkout process and one is domestic and the second is not, I can see bank wire only if the shipping address is domestic. I see it while making an order.

Share this post


Link to post
Share on other sites

What version of Prestashop and what version of the bankwire module?

Prestashop 1.6.1.9, bank wire 1.1.2

Share this post


Link to post
Share on other sites

so i explored this, and the answer is surprising.  it has always worked this way, even back in PS v1.5

 

I had assumed it was tied to the billing address, but it really is associated to the delivery address.

Share this post


Link to post
Share on other sites

Have you found a trick to retrieve the billing address ?

I tried the following but I still get the shipping address :

   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);


Any idea could really help me.

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More