Post by mikeinterserv » Wed Dec 23, 2020 12:32 am

I have just installed paypal standard, tested and appears working OK
However the order shows complete instead of pending or processing. I set the relevent fields as they all showed cancelled as the default..
Last edited by mikeinterserv on Wed Jan 06, 2021 10:19 am, edited 2 times in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ADD Creative » Wed Dec 23, 2020 1:05 am

Complete in the PayPal module means Payment complete, so just set this to something like processing. I would also recommend Setting the Order Status in the main settings so something like error or needs checking. As this is the setting use if something goes wrong.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mikeinterserv » Fri Jan 01, 2021 12:50 am

ADD Creative wrote:
Wed Dec 23, 2020 1:05 am
I would also recommend Setting the Order Status in the main settings so something like error or needs checking. As this is the setting use if something goes wrong.
Not sure what you mean by the above

Some of our paypal orders are showing as an order and pending BUT some are showing as cancelled in missing orders.
I am very confused about the missing orders and the documentation on it is scarce along with the STATUSES whether in a module like paypal standard or in the shop settings.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ADD Creative » Fri Jan 01, 2021 6:09 am

mikeinterserv wrote:
Fri Jan 01, 2021 12:50 am
ADD Creative wrote:
Wed Dec 23, 2020 1:05 am
I would also recommend Setting the Order Status in the main settings so something like error or needs checking. As this is the setting use if something goes wrong.
Not sure what you mean by the above

Some of our paypal orders are showing as an order and pending BUT some are showing as cancelled in missing orders.
I am very confused about the missing orders and the documentation on it is scarce along with the STATUSES whether in a module like paypal standard or in the shop settings.
With the PayPal standard module one of three things will happen with an order's status.

1. The order status will not get set at all and the order will be shown in missing orders. This will be because the customer abandoned the order before paying or your site didn't get the IPN from PayPal to say the customer paid.

2. The order status get set to the one set in the main OpenCart settings. This could be because the customer tried to defraud you by changing the value of the payment or the receiver. Or some other error.

3. The order status get set to the corresponding status set in the module. This is likely to happen when PayPal sends an IPN to say payment is 'Completed'. So the order status will be set to the status you have selected as the one of PayPal's 'Completed' in the module.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mikeinterserv » Fri Jan 01, 2021 8:46 pm

Thanks for that, I am getting there.
One thing
you said - or your site didn't get the IPN from PayPal
is the IPN taken care of in the module itself or is there anything I need to do

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ADD Creative » Sat Jan 02, 2021 12:59 am

mikeinterserv wrote:
Fri Jan 01, 2021 8:46 pm
Thanks for that, I am getting there.
One thing
you said - or your site didn't get the IPN from PayPal
is the IPN taken care of in the module itself or is there anything I need to do
The IPN is taken care of by the module, so there should not be anything your need to do.

If you did have a problem with the IPN, then you can see the history in PayPal to see if it got to your server or if there was any error.
https://developer.paypal.com/docs/api-b ... perations/

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mikeinterserv » Sat Jan 02, 2021 11:04 pm

Thanks again
I did enable debugging in the paypal standard module and can see the successful IPN data.
Still not sure why some are showing cancelled in the missing orders, customer says they paid by paypal and payment was accepted.
I am sure I will ge to the bottom of it.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Sun Jan 03, 2021 5:35 am

I still think I have some sort of problem with these missing orders
When a paypal order is successful ie the whole order goes as expected and the order shows up correctly in new orders as pending and this is in the log for paypal debugging
2021-01-01 20:25:20 - PP_STANDARD :: IPN RESPONSE: VERIFIED
BUT there are other orders where there is NO error log in fact nothing in the log at all and the order goes to missing orders with cancelled status.
in the paypal standard statuses none of them are selected as cancelled

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ADD Creative » Sun Jan 03, 2021 6:47 am

mikeinterserv wrote:
Sun Jan 03, 2021 5:35 am
I still think I have some sort of problem with these missing orders
When a paypal order is successful ie the whole order goes as expected and the order shows up correctly in new orders as pending and this is in the log for paypal debugging
2021-01-01 20:25:20 - PP_STANDARD :: IPN RESPONSE: VERIFIED
BUT there are other orders where there is NO error log in fact nothing in the log at all and the order goes to missing orders with cancelled status.
in the paypal standard statuses none of them are selected as cancelled
Missing orders should have no status. Are you sure you are not getting confused with the add history drop down?

If your are not seeing anything in the error log when debugging is on and you can see the payment in PayPal, then you need to check the IPN history for that order in your PayPal control panel. https://developer.paypal.com/docs/api-b ... perations/

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mikeinterserv » Sun Jan 03, 2021 7:05 am

Ah yes you are correct about add order history- the default is cancelled so easy to not catch that at first.
SO the order status is missing orders.

Customer says they did not cancel at checkout and paypal went through. order still went to missing orders.
I will get the shop owner to check the paypal account Monday to verify that payment went through.

I just can't work out yet why some of these paypal orders are going through correctly and others not.

Again thank you for your help

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Sun Jan 03, 2021 7:09 am

ADD Creative wrote:
Wed Dec 23, 2020 1:05 am
3. The order status get set to the corresponding status set in the module. This is likely to happen when PayPal sends an IPN to say payment is 'Completed'. So the order status will be set to the status you have selected as the one of PayPal's 'Completed' in the module.
This is paypals response in the log file to a successful order
PP_STANDARD :: IPN RESPONSE: VERIFIED

There is NO VERIFIED field in the paypal module to set
In the paypal module for COMPLETED I selected pending as we want ALL orders to show as pending.
ALL the SUCCESSFUL paypal orders currently show in orders correctly as pending.
The others have gone to missing orders with nothing in the logs

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Tue Jan 05, 2021 11:26 pm

This is why I have the missing orders and maybe useful to others that might encounter the same thing.

This site was switched over from an old site.
NO data was carried over - like vouchers or discount codes.
Customers coming to the new site who have a code from the old site are going STRAIGHT TO CHECKOUT without realising you can ONLY enter CODES and VOUCHERS in the CART itself.
It is VERY EASY to go STRAIGHT to checkout, EXPECTING to be able to enter the codes there. They get as far as selecting payment and CONTINUE only to find there is no place for the code or voucher then ABANDONING the order.

I will code a link in the checkout page that says REDEEM CODE or VOUCHER that links to the Cart, checkout/cart and displays the full CART so they can enter the voucher.
Unless anyone has a better idea.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales
Who is online

Users browsing this forum: thekrotek and 9 guests