JaimeChizavane / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

Unpaid orders #738

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Add a flag to w2p admin to ignore unpaid orders even if they pass the checkout.

An order is still created if a payments via paypal was cancelled, but the 
status is pending.
It makes sense to generated files for pending orders if the payment is either 
not required or processed offline, but for customers using paypal it's a bit of 
a rip off.

The new setting (a check box)
"Ignore unpaid orders" CHECKBOX
will instruct the extension to leave the saved order as the order's order.
The admin can click through to the saved order and finalise it at ZP end if 
needed.

We also need to add a link to finalise the order from mage admin, but it's a 
separate issue.

Original issue reported on code.google.com by ad...@zetaprints.com on 18 Jan 2012 at 2:23

GoogleCodeExporter commented 8 years ago
Update priority and details of issue #739 when this one is finished.

Original comment by ad...@zetaprints.com on 18 Jan 2012 at 2:27

GoogleCodeExporter commented 8 years ago
Diff: http://code.google.com/p/magento-w2p/source/detail?r=1887

Original comment by Anatoly....@gmail.com on 5 Feb 2012 at 6:19

GoogleCodeExporter commented 8 years ago
Please, test it with 2.0.1.0alpha3 release.

Enable PayPal's Website Payments Standard method. See credentials info in task 
752 on redmine

Original comment by Anatoly....@gmail.com on 6 Feb 2012 at 11:45

GoogleCodeExporter commented 8 years ago
Tested on /magedev/
web_to_print_store_incl_theme 2.0.1.0alpha3 (alpha)

Status of the order is "Pending Payment" when I finalize the checkout but don't 
complete the PayPal payment.
Order details only contain a "ZP order" link. No files generated. This does not 
change even after I generate the files from w2p portal side.
Test OK so far.

I can't finalize the test because I can't go all the way through PayPal. The 
credentials listed on redmine don't work. I tried both seller and buyer 
acc/pass to login into PayPal's sandbox mode. No go.
I need to finalize the payment and check the order status change as well as the 
file generation.

Original comment by agur...@gmail.com on 6 Feb 2012 at 3:24

GoogleCodeExporter commented 8 years ago
PayPal won't work because you forgot to fill API/Integration Settings. I've 
fixed it.
Please, re-test it.

Original comment by Anatoly....@gmail.com on 7 Feb 2012 at 8:04

GoogleCodeExporter commented 8 years ago
Does ZP order link work OK? It should take you to a saved order that you can 
finalise at ZP end. Worth checking.

Original comment by ad...@zetaprints.com on 7 Feb 2012 at 8:06

GoogleCodeExporter commented 8 years ago
I'm still asked to login to sandbox features in PayPal. Neither buyer nor 
seller credentials work.
I might need your sandbox acc pass for this.

Original comment by agur...@gmail.com on 7 Feb 2012 at 8:55

GoogleCodeExporter commented 8 years ago
I don't get you. What are trying to do?

Original comment by Anatoly....@gmail.com on 7 Feb 2012 at 9:14

GoogleCodeExporter commented 8 years ago
Hm, looks I configured another instance or something like that. Use API 
credentials from the issue on redmine to fill API/Integration settings

Original comment by Anatoly....@gmail.com on 7 Feb 2012 at 9:24

GoogleCodeExporter commented 8 years ago
After clicking the button "Place order" I get redirected to PayPal.
The regular PayPal doesn't work on those "seller" or "buyer" acc/pass. When I 
activate the "Sandbox mode" in M. admin, the final step of my order is a page 
saying "Please login to use the PayPal Sandbox features.". The link goes to a 
login page where none of your credentials work.

What I'm trying to do is to actually pay for my order and check the changes on 
order details page in Magento. Isn't that the point of a sandbox mode?

Original comment by agur...@gmail.com on 7 Feb 2012 at 9:25

GoogleCodeExporter commented 8 years ago
Ok, I've configured PayPal payment method om /mageimage/. Please, test it again.

Original comment by Anatoly....@gmail.com on 7 Feb 2012 at 9:46

GoogleCodeExporter commented 8 years ago
And on /magedev/, too.

Will check it myself

Original comment by Anatoly....@gmail.com on 7 Feb 2012 at 9:48

GoogleCodeExporter commented 8 years ago
I get the same thing on /mageimage/ too. Are you sure this is how it is suppose 
to work?
I noticed that the API Integration settings get reset after I save them. Well, 
at least they look reset since the number of dots that replace real username, 
pass texts get back to their default (shorter) length.

Original comment by agur...@gmail.com on 7 Feb 2012 at 10:09

GoogleCodeExporter commented 8 years ago
Sorry Atanas, that's my fault. See sandbox login/pwd in the issue on redmine

Original comment by Anatoly....@gmail.com on 7 Feb 2012 at 10:26

GoogleCodeExporter commented 8 years ago
Tested on /magedev/
web_to_print_store_incl_theme 2.0.1.0alpha3 (alpha)

I got through with PayPal but nothing changed over at our end. I processed the 
payment as a "buyer" and got a payment confirmation page in PayPal.

- In Magento admin, the order is still under "Pending payment" status, there 
are no output file links
- In Magento front page, the order details are not reachable for the customer
- In w2p portal, nothing is changed. Order status is "saved", files are not 
generated.

Original comment by agur...@gmail.com on 7 Feb 2012 at 12:54

GoogleCodeExporter commented 8 years ago
That's how it works on private servers at least. I found that PayPal's Website 
Payments Standard method leaves order with "Pending payment" status after 
successful checkout because transaction can take sometime to complete. Maybe it 
pings back M. to change status after transaction completes but it doesn't 
happen on out server (or my local M. installation) because they are not 
reachable from internet.

I think we should test different PayPal methods on production server or open 
our dev servers while testing it.

Original comment by Anatoly....@gmail.com on 8 Feb 2012 at 4:55

GoogleCodeExporter commented 8 years ago
TRue. Let's open it for a few minutes.

Original comment by ad...@zetaprints.com on 8 Feb 2012 at 10:13

GoogleCodeExporter commented 8 years ago
It worked but there are no links to generated files in M admin. "ZP order" 
links remains the only one there.

Order status is changed to "Complete" in M. admin and to "deleted" in w2p 
portals side.

Original comment by agur...@gmail.com on 8 Feb 2012 at 10:27

GoogleCodeExporter commented 8 years ago
Cool! :-) We need to complete order when its status changed, too. Hm, but we 
already delete ZP order when order is completed. It's strange that status was 
changed to Complete after payment.

Original comment by Anatoly....@gmail.com on 8 Feb 2012 at 10:37

GoogleCodeExporter commented 8 years ago
The product is virtual. That's why its status was changed right to completed 
because there's no need in shipping. But we anyway need to complete order after 
successful payment.

Original comment by Anatoly....@gmail.com on 8 Feb 2012 at 11:11

GoogleCodeExporter commented 8 years ago
Please, re-test it with 2.0.1.0beta4 release.

I added a call to complete ZP order after M. sets status of the order to 
Processing.

Original comment by Anatoly....@gmail.com on 12 Feb 2012 at 5:06

GoogleCodeExporter commented 8 years ago
Tested on /magedev/
web_to_print_store_incl_theme   2.0.1.0beta4 (beta)

I checked out using PayPal Express checkout method.
Went all the way and "payed" for my order, the output file links showed up OK.

I need to test this using PayPal standard checkout method.
Max, let me know when you can open up d1 again for the test.

Original comment by agur...@gmail.com on 13 Feb 2012 at 1:09

GoogleCodeExporter commented 8 years ago
Tested on /magedev/
web_to_print_store_incl_theme   2.0.1.0beta4 (beta)

I placed an order using PayPal standard checkout method with the firewall 
disabled for d1.
Order status remained "Pending Payment". Gave it a some time thinking there 
might be periodical intervals of communication from PayPal - no changes.

Original comment by agur...@gmail.com on 14 Feb 2012 at 9:26

GoogleCodeExporter commented 8 years ago
Looks like it actually works.
Both outcomes are covered. 
Test OK or is there any doubt about it?

Original comment by ad...@zetaprints.com on 16 Feb 2012 at 3:52

GoogleCodeExporter commented 8 years ago
I'm gonna take your word for it.

I must have misunderstood what's suppose to happen. Thought that the output 
files should not get generated until the payment comes through from PayPal.
That is so but, the files don't get generated and the order status remains 
"Pending payment" even after I "pay" from PayPal end. This is what confused me.

Original comment by agur...@gmail.com on 16 Feb 2012 at 3:58

GoogleCodeExporter commented 8 years ago

Original comment by ad...@zetaprints.com on 20 Feb 2012 at 9:59

GoogleCodeExporter commented 8 years ago
http://www.zetaprints.com/magentohelp/ignore-unpaid-orders/

Original comment by agur...@gmail.com on 23 Mar 2012 at 5:37

GoogleCodeExporter commented 8 years ago

Original comment by ad...@zetaprints.com on 24 Mar 2012 at 10:29