Author Topic: standard PayPal checkout returns incomplete status  (Read 10697 times)

Offline lydmanp

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
standard PayPal checkout returns incomplete status
« on: February 22, 2015, 08:33:12 AM »
Hi,

When i use paypal in sandbox mode and make a paypal checkout, the process goes ok and paypal returns me to the checkout/success page in abantecart page. So ok until this but then when customer tries to open order history, the just made order cannot be seen.
In admin mode the order can be seen as incomplete and therefore is not seen in customer view.

This is seen when abantecart works from localhost or a webhotel or from the abantecart demo site.

Paypal express checkout seems to change state to processing, and works ok.

Some how i think this could be related to paypal side?

Please help me out if you know where i could start debugging.


Offline lydmanp

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #1 on: February 22, 2015, 11:45:53 AM »
What i meant was, when using paypal extension as payment method, i get incomplete order status.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5797
  • Karma: +274/-2
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #2 on: February 23, 2015, 01:28:23 AM »
Hello.

Please check PayPal Standard extension setting Order Status in your admin

Offline lydmanp

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #3 on: February 23, 2015, 12:43:53 PM »
I switched to paypal express, since it works and i can even refund orders with paypal express through AbanteCart cart admin mode.
The only negative thing is the paypal express extension is, that the customer may not understand that the order must be confirmed after paypal stage is completed.

It whould be better that the paypal payment return whould return to checkout/success page.

BUT, I hope someone can tell me why standard paypal isn't working as i expect > so that status will change to processing after completion of order.

Offline lydmanp

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #4 on: February 23, 2015, 01:04:00 PM »
Hello.

Please check PayPal Standard extension setting Order Status in your admin

Non of the order statuses stands for incomplete. There is only:
Pending
Processing
Complete

I have the Processing order status selected.
Non of the other statuses will change the result. Incomplete is always returned.
Can you confirm that it works for you ?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5797
  • Karma: +274/-2
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #5 on: February 24, 2015, 03:08:29 AM »
Non of the order statuses stands for incomplete. There is only:
Pending
Processing
Complete

I have the Processing order status selected.
Non of the other statuses will change the result. Incomplete is always returned.
Can you confirm that it works for you ?

Yes, I confirm PayPal std work fine with my sandbox account
Check if any issues on paypal side - login to your paypal sandbox and check is everything ok with your account

Offline lydmanp

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #6 on: February 24, 2015, 12:08:03 PM »
Yes, everything is fine on paypal side. I get the user-buyer@domain and user-facilitator@domain notifications of placed orders and respectively received orders.
All seems fine, but abantecart status is left as incomplete.

i've tested abantecart 1.2.0 and 1.2.1. locally and 1.1.9 (on webhotel) and 1.2.0 (abantecart demo). All works in the same way. Yes this seems as it would be a paypal issue but then again paypal express works which makes this a little confusing where to try to find the issue :|

Offline lydmanp

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #7 on: February 24, 2015, 02:50:34 PM »
I checked the express checkout also. The express checkout will also be incomplete to the point when paypal returns back to store. But after we click, confirm order button, the status will change to processing or other configured status (complete, pending, processing).

Offline lydmanp

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #8 on: February 24, 2015, 05:08:38 PM »
Hi,

i might have found the problem. It seems to me like it could be a defect in the pp_standart.php file
This codes are taken from: github

$this->data[ 'back' ] = HtmlElementFactory::create(array( 'type' => 'button',
                                            'name' => 'back',
                                            'text' => $this->language->get('button_back'),
                                            'style' => 'button',
                                            'href' => $back ));
      $this->data[ 'button_confirm' ] = HtmlElementFactory::create(
                                       array( 'type' => 'submit',
                                            'name' => $this->language->get('button_confirm'),
                                            'style' => 'button',
                                       ));
As you see, after the 'button' there is a comma "," so php is expecting a parameter.

compare this to pp_express:
$this->data[ 'button_back' ] = $this->html->buildElement(array( 'type' => 'button',
                                                  'name' => 'back',
                                                  'text' => $this->language->get('button_back'),
                                                  'href' => $back ));
      $this->data[ 'button_confirm' ] = HtmlElementFactory::create(
                                       array(  'type' => 'submit',
                                              'name' => $this->language->get('button_confirm'),
                                              'style' => 'button',
                                             'href' => $this->html->getSecureURL('r/extension/default_pp_express/confirm')
                                       ));

I just cant get it working by applying the 'href' => $this->html->getSecureURL('r/extension/default_pp_standart/confirm') to the pp_standart.php file...

Offline lydmanp

  • Newbie
  • *
  • Posts: 23
  • Karma: +1/-0
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #9 on: February 25, 2015, 02:43:57 PM »
I found the issue, and i think it was all in me... aargh.

It was the notify_url that was incorrect. It was:
$this->data['notify_url'] = $this->html->getURL('extension/default_pp_standart/confirm');

while it must be:
$this->data['notify_url'] = $this->html->getURL('extension/default_pp_standart/callback');

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5797
  • Karma: +274/-2
    • View Profile
Re: standard PayPal checkout returns incomplete status
« Reply #10 on: February 26, 2015, 05:27:23 AM »
I found the issue, and i think it was all in me... aargh.

It was the notify_url that was incorrect. It was:
$this->data['notify_url'] = $this->html->getURL('extension/default_pp_standart/confirm');

while it must be:
$this->data['notify_url'] = $this->html->getURL('extension/default_pp_standart/callback');

What PayPal extension version you have? Looks like only you have issue with incomplete status
Are you sure you did not modify files and have correct Order Status settings (Paypal and common Abantecart  default Order Status )?

 

Powered by SMFPacks Social Login Mod