Closed Bug 686051 Opened 14 years ago Closed 14 years ago

What to do when the transaction goes wrong

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: andy+bugzilla, Assigned: gkoberger)

References

Details

(Whiteboard: [t:muffin])

We've assumed a straight flow through to buying an addon or webapp that ends up at the thank you page. But that assumes paypal returns a 'COMPLETED' status when we check with PayPal that its been purchased. But PayPal could come back with 'INCOMPLETE', 'CREATED', 'ERROR', 'EXPIRED' or 'PROCESSING'. Error is easy, we need to show a nice error. The others are little more tricky, should we poll the server until they work? Either way, the addon / webapp should not be installed afterwards. This ticket is for making sure the front end copes correctly.
Let's just cope with showing an error in this issue. Should just be a matter of altering the template shown back in paypal_thanks.
Blocks: 688310
Target Milestone: --- → 6.2.6
Target Milestone: 6.2.6 → 6.2.8
PROCESSING can be ignored. We are blocking payments that might produce this on the paypal end.
Blocks: 690899
Priority: -- → P1
Target Milestone: 6.2.8 → 6.2.9
Target Milestone: 6.2.9 → 6.3.0
Andy, did we decide on polling? So, if we get "ERROR", we show an error. Anything else on the list, we poll until we get the right thing? And since I don't even know where to start looking, what URL should I be polling? A paypal one? Or a Mozilla one?
We are blocking any payments that result in pending. So you'll either get a pass or a fail there are no other conditions to worry about. You don't need to ping or poll paypal, theoretically the error will get passed into the template in purchase_complete.
Target Milestone: 6.3.0 → 6.3.2
Code is written, but I can't figure out how to force PayPal to return an error so I can see if it actually works. Krupa? Andy?
I don't know either. I do know that if you break the code and make it return an error, we can test then. It seems odd but that could become a waffle flag: break paypal. The problem is that as I understand it, the sandbox is pretty forgiving in and allows all things to work.
Target Milestone: 6.3.2 → 6.3.3
Target Milestone: 6.3.3 → 6.3.4
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.