matthiask / plata

Plata - the lean and mean Django-based Shop
https://plata-django-shop.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
202 stars 63 forks source link

question on succes order and balance remaining #61

Closed jorrete closed 11 years ago

jorrete commented 11 years ago

Hi, I am testing the checkout process with paypal module (sandbox). I've put may paypal address and 'false'. When paypal page returns me to the succes page there still is a "balance remaining", so the order is still "opened". Am I doing something wrong?

Thanks.

matthiask commented 11 years ago

Hi,

How much "balance remaining" do you have? I remember having a few problems with rounding, maybe they have resurfaced. This should not happen though.

Thanks, Matthias

matthiask commented 11 years ago

Please reopen this issue if you have additional information.

Thanks!

armicron commented 10 years ago

I have same issue. Balance remaining equals full cost of product.

matthiask commented 10 years ago

@armicron That would be expected before payment. If you're logging plata events, the log should look similar to this:

2011-12-05 23:52:17,961 INFO:plata.shop.order:Promoting No. 3210 to status 20
2011-12-05 23:53:47,713 INFO:plata.shop.order:Promoting No. 3210 to status 30
2011-12-05 23:53:47,727 INFO:plata.payment.paypal:Processing order No. 3210 using Paypal
2011-12-05 23:53:47,727 INFO:plata.payment:Clearing pending payments on No. 3210
2011-12-05 23:53:47,734 INFO:plata.payment:Creating pending payment on No. 3210
2011-12-05 23:55:40,625 INFO:plata.payment.paypal:IPN: Processing request data <QueryDict: {STRIPPED}>
2011-12-05 23:55:42,590 INFO:plata.payment.paypal:IPN: Verified request <QueryDict: {STRIPPED}>
2011-12-05 23:55:42,717 INFO:plata.payment.paypal:IPN: Successfully processed IPN request for No. 3210
2011-12-05 23:55:42,742 INFO:plata.payment:Order No. 3210 has been completely paid for using <django.utils.functional.__proxy__ object at 0x7fbf50720790>
2011-12-05 23:55:42,744 INFO:plata.shop.order:Promoting No. 3210 to status 40
2011-12-05 23:55:43,282 INFO:plata.payment:Clearing pending payments on O-000001123

What are you seeing instead in your logfile?

armicron commented 10 years ago

I've got this with examples/custom and this logging-settings

2014-07-30 10:14:51,569 DEBUG:plata:Registering shop instance: <custom.views.CustomShop object at 0x7fd648053c90>
2014-07-30 10:14:51,569 DEBUG:plata:Registering shop instance: <custom.views.CustomShop object at 0x7fd648053c90>
2014-07-30 10:15:46,935 INFO:plata.shop.order:Promoting No. 4 to status 20
2014-07-30 10:15:46,935 INFO:plata.shop.order:Promoting No. 4 to status 20
2014-07-30 10:16:06,182 INFO:plata.shop.order:Promoting No. 4 to status 30
2014-07-30 10:16:06,182 INFO:plata.shop.order:Promoting No. 4 to status 30
2014-07-30 10:16:06,429 INFO:plata.payment.paypal:Processing order No. 4 using Paypal
2014-07-30 10:16:06,429 INFO:plata.payment.paypal:Processing order No. 4 using Paypal
2014-07-30 10:16:06,430 INFO:plata.payment:Clearing pending payments on No. 4
2014-07-30 10:16:06,430 INFO:plata.payment:Clearing pending payments on No. 4
2014-07-30 10:16:06,431 INFO:plata.payment:Creating pending payment on No. 4
2014-07-30 10:16:06,431 INFO:plata.payment:Creating pending payment on No. 4
2014-07-30 10:17:03,563 INFO:plata.payment.paypal:IPN: Processing request data <QueryDict: ...>
2014-07-30 10:17:03,563 INFO:plata.payment.paypal:IPN: Processing request data <QueryDict: >
2014-07-30 10:17:05,523 INFO:plata.payment.paypal:IPN: Verified request <QueryDict: ...>
2014-07-30 10:17:05,523 INFO:plata.payment.paypal:IPN: Verified request <QueryDict: ...>
2014-07-30 10:17:05,806 INFO:plata.payment.paypal:IPN: Successfully processed IPN request for No. 4
2014-07-30 10:17:05,806 INFO:plata.payment.paypal:IPN: Successfully processed IPN request for No. 4
armicron commented 10 years ago

any idea what is wrong? maybe I shouldn't use latest code from git?

matthiask commented 10 years ago

Hi

Unfortunately I'm in the middle of moving and therefore do not have much time right now. I do recommend using the git version, it's what we're using as well.

It's strange that all messages are logged twice.

How does the order payment entry look after you've paid successfully?

(Maybe it is the PayPal sandbox again. It differs from PayPal's production environment in one central aspect: It always sends the same transaction identifiers, maybe that is the reason why Plata is confused. PayPal's sandbox really socks for developing.)

Hope it helps! On Jul 31, 2014 7:34 AM, "armicron" notifications@github.com wrote:

any idea what is wrong? maybe I shouldn't use latest code from git?

— Reply to this email directly or view it on GitHub https://github.com/matthiask/plata/issues/61#issuecomment-50714430.

armicron commented 10 years ago

all works after accepting payment in paypal shop account. Sorry for spending your time

matthiask commented 10 years ago

Re spending my time: No problem at all :-)

Can you explain what "accepting payment" means? Might be helpful for later reference.

armicron commented 10 years ago

Client pays with paypal, then paypal receives payment with status Unclaimed. In Order status/Actions column there is button Accept, after clicking this button django-plata promotes order to Order.PAID status. paypal