spree/spree_paypal_express — Issue #27: Payment process is not a true 'transaction'
Author: zecke
Created: 2011-11-28 20:55:32+00:00
State: open

I can only describe the symptoms here:

Setup:
1) Paypal extension is configured to not auto capture
2) Review is not ticked
3) Currency is in EUR
4) Live environment

Purchase
1.) Customer gets to paypal
2.) Returns to https://shop/orders/R666666666/checkout/paypal_confirm?payment_method_id=6&token=TOK&PayerID=FOO
Gets a "504 Gateway Timeout"
3.) Customer gets a Order Confirmation Email
4.) Payment is not received/known to paypal

Database:
1.) PaypalAccount has a record for this purchase
#
#, source_id: 666, source_type: "PaypalAccount", payment_method_id: 6, state: "pending", response_code: "Success", avs_response: nil>

So apparently the order is confirmed before it is confirmed with paypal. My logfile configuration didn't allow me to see if the 504 was generated by my frontend (cherokee), or by spree (e.g. processing timeout) or by paypal.

Any idea of where this could have gone wrong? Is there any code that starts a timeout?