Here is what happens. When checking out and choosing PayPal, after I enter
shipping billing (contact) data and hit 'continue checking out' the screen
appears to refresh and stay on the same screen.
I added a number of debug print statements and have found that in
payment/views/contact.py
paymentmodule = config_get_group(modulename)
url = lookup_url(paymentmodule, 'satchmo_checkout-step2')
aa.debugPrintErik ("contact_info: url: %s" % url)
return http.HttpResponseRedirect(url)
Which goes to: ....payment/modules/paypal/views.py:
At this point the request no longer has contact info in the request.
Redirects do not pass on the POST data. How does this work for anyone?
def pay_ship_info(request):
aa.debugPrint ("pay_ship_info: request: %s" % repr (request))
return payship.base_pay_ship_info(request,
config_get_group('PAYMENT_PAYPAL'),
payship.simple_pay_ship_process_form,
'shop/checkout/paypal/pay_ship.html')
pay_ship_info = never_cache(pay_ship_info)
This goes to : def base_pay_ship_info
which calls
def pay_ship_info_verify(request, payment_module):
"""Verify customer and cart.
Returns:
True, contact, cart on success
False, destination of failure
"""
# Verify that the customer exists.
aa.debugPrint ("pay_ship_info_verify, POST: %s" % repr(request.POST))
aa.debugPrint ("pay_ship_info_verify, GET: %s" % repr(request.GET))
aa.debugPrint ("pay_ship_info_verify, payment_module: %s" %
payment_module)
try:
contact = Contact.objects.from_request(request, create=False)
except Contact.DoesNotExist:
At which point there is no contact info.
On Friday, May 18, 2012 7:13:39 AM UTC-5, evigmostad wrote:
>
> Can't seem to get this to work properly.
>
> In config.py, the default return address is;
> StringValue(PAYMENT_GROUP,
> 'RETURN_ADDRESS',
> description=_('Return URL'),
> help_text=_('Where Paypal will return the customer after the purchase
> is complete. This can be a named url and defaults to the standard checkout
> success.'),
> default="satchmo_checkout-success"),
>
> Do I need to set it to the IPN url in settings.py?
>
> u'PAYMENT_PAYPAL': {
> u'SSL': u'True',
> u'BUSINESS': u'[email protected]',
> u'BUSINESS_TEST': u'[email protected]',
> u'CURRENCY_CODE': u'USD',
> u'LIVE': True,
> u'POST_URL': u'https://www.paypal.com/cgi-bin/webscr',
> # u'RETURN_ADDRESS': u'satchmo_checkout-ipn',
> },
>
>
> ../modules/paypal/views.py def ipn only gets hit if I un-comment that line
> and then it doesn't have any data passed to it. In fact it comes as a GET
> not POST.
>
> If I don't set it, ipn() is never hit but the base
> payment/views/checkout.py: def success () does get hit.
>
> I need to modify some other database tables once I know the payment was
> approved by paypal. I guess I could look in success() and see if the
> order was a Paypal order (how?) and do what I need to do in that case.
>
> Any help appreciated.
> On Tuesday, February 2, 2010 12:24:52 PM UTC-6, Guybrush wrote:
>>
>> Hello everyone,
>>
>> I have been struggling to figure out why the cart is not getting cleared
>> after a paypal purchase. Item is successfully purchased and after I
>> click on "return to homepage" from paypal, it returns to the purchase
>> summary properly but the item still in the cart.
>>
>> I'm trying to look at the logs but I don't see anything. (I haven't
>> tried with excessive logs option yet)
>>
>> Is there something I have to do on paypals end to make it work?
>> We are using paypal business account.
>>
>> It seems to work ok with my developer sandbox account.
>>
>> I'm using satchmo 0.9 and nginx server on webfaction
>>
>> Does satchmo paypal requires Website Payments Pro?
>>
>> Any help is appreciated!
>> Thanks!
>>
>>
>>
On Friday, May 18, 2012 7:13:39 AM UTC-5, evigmostad wrote:
>
> Can't seem to get this to work properly.
>
> In config.py, the default return address is;
> StringValue(PAYMENT_GROUP,
> 'RETURN_ADDRESS',
> description=_('Return URL'),
> help_text=_('Where Paypal will return the customer after the purchase
> is complete. This can be a named url and defaults to the standard checkout
> success.'),
> default="satchmo_checkout-success"),
>
> Do I need to set it to the IPN url in settings.py?
>
> u'PAYMENT_PAYPAL': {
> u'SSL': u'True',
> u'BUSINESS': u'[email protected]',
> u'BUSINESS_TEST': u'[email protected]',
> u'CURRENCY_CODE': u'USD',
> u'LIVE': True,
> u'POST_URL': u'https://www.paypal.com/cgi-bin/webscr',
> # u'RETURN_ADDRESS': u'satchmo_checkout-ipn',
> },
>
>
> ../modules/paypal/views.py def ipn only gets hit if I un-comment that line
> and then it doesn't have any data passed to it. In fact it comes as a GET
> not POST.
>
> If I don't set it, ipn() is never hit but the base
> payment/views/checkout.py: def success () does get hit.
>
> I need to modify some other database tables once I know the payment was
> approved by paypal. I guess I could look in success() and see if the
> order was a Paypal order (how?) and do what I need to do in that case.
>
> Any help appreciated.
> On Tuesday, February 2, 2010 12:24:52 PM UTC-6, Guybrush wrote:
>>
>> Hello everyone,
>>
>> I have been struggling to figure out why the cart is not getting cleared
>> after a paypal purchase. Item is successfully purchased and after I
>> click on "return to homepage" from paypal, it returns to the purchase
>> summary properly but the item still in the cart.
>>
>> I'm trying to look at the logs but I don't see anything. (I haven't
>> tried with excessive logs option yet)
>>
>> Is there something I have to do on paypals end to make it work?
>> We are using paypal business account.
>>
>> It seems to work ok with my developer sandbox account.
>>
>> I'm using satchmo 0.9 and nginx server on webfaction
>>
>> Does satchmo paypal requires Website Payments Pro?
>>
>> Any help is appreciated!
>> Thanks!
>>
>>
>>
On Friday, May 18, 2012 7:13:39 AM UTC-5, evigmostad wrote:
>
> Can't seem to get this to work properly.
>
> In config.py, the default return address is;
> StringValue(PAYMENT_GROUP,
> 'RETURN_ADDRESS',
> description=_('Return URL'),
> help_text=_('Where Paypal will return the customer after the purchase
> is complete. This can be a named url and defaults to the standard checkout
> success.'),
> default="satchmo_checkout-success"),
>
> Do I need to set it to the IPN url in settings.py?
>
> u'PAYMENT_PAYPAL': {
> u'SSL': u'True',
> u'BUSINESS': u'[email protected]',
> u'BUSINESS_TEST': u'[email protected]',
> u'CURRENCY_CODE': u'USD',
> u'LIVE': True,
> u'POST_URL': u'https://www.paypal.com/cgi-bin/webscr',
> # u'RETURN_ADDRESS': u'satchmo_checkout-ipn',
> },
>
>
> ../modules/paypal/views.py def ipn only gets hit if I un-comment that line
> and then it doesn't have any data passed to it. In fact it comes as a GET
> not POST.
>
> If I don't set it, ipn() is never hit but the base
> payment/views/checkout.py: def success () does get hit.
>
> I need to modify some other database tables once I know the payment was
> approved by paypal. I guess I could look in success() and see if the
> order was a Paypal order (how?) and do what I need to do in that case.
>
> Any help appreciated.
> On Tuesday, February 2, 2010 12:24:52 PM UTC-6, Guybrush wrote:
>>
>> Hello everyone,
>>
>> I have been struggling to figure out why the cart is not getting cleared
>> after a paypal purchase. Item is successfully purchased and after I
>> click on "return to homepage" from paypal, it returns to the purchase
>> summary properly but the item still in the cart.
>>
>> I'm trying to look at the logs but I don't see anything. (I haven't
>> tried with excessive logs option yet)
>>
>> Is there something I have to do on paypals end to make it work?
>> We are using paypal business account.
>>
>> It seems to work ok with my developer sandbox account.
>>
>> I'm using satchmo 0.9 and nginx server on webfaction
>>
>> Does satchmo paypal requires Website Payments Pro?
>>
>> Any help is appreciated!
>> Thanks!
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/satchmo-users/-/nqEmT7ZIhCIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.