Closed Bug 765361 Opened 12 years ago Closed 12 years ago

Move preapproval to using solitude

Categories

(Marketplace Graveyard :: Payments/Refunds, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: andy+bugzilla, Assigned: andy+bugzilla)

References

Details

Once the marketplace can talk to solitude, let's move over the use of the pre-approval token to the marketplace. Pre-approval is setup here:

https://github.com/mozilla/zamboni/blob/master/mkt/account/views.py#L112

The trick here is that the solitude migration will take some time. So here's my suggestion.

Behind the waffle flag (bug 765359) ask solitude for the pre-approval key. Use the given URL and store the key. Bounce to paypal.

When paypal is done store the key locally and send the ping to solitude to store the key.

This means we'll have the pre-approval key in two places:

https://github.com/mozilla/zamboni/blob/master/mkt/account/views.py#L51

Once the Pay API is ported over... we'll be able to turn off old code and solitude will be live. If solitude is causing problems we can turn it off.
Assignee: nobody → amckay
https://github.com/mozilla/zamboni/commit/247f58
https://github.com/mozilla/zamboni/commit/c14de5
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.