Closed Bug 986614 Opened 11 years ago Closed 10 years ago

Set user on contribution object for purchase of in app object after post-purchase postback

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P2)

Avenir
x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlockhart, Assigned: jlockhart)

References

Details

When we receive a postback from webpay to zamboni after a successful purchase of an in app object, we have to update the contribution object to include the user info that was received in webpay after the user authenticated. https://github.com/mozilla/zamboni/blob/master/mkt/purchase/webpay.py#L123-L125 User can be determined from the postback JWT here: https://developer.mozilla.org/en-US/Marketplace/Monetization/In-app_payments#Processing_chargebacks_on_the_server
Assignee: nobody → jkerim
Priority: -- → P2
Blocks: 944480
Depends on: 1027275
Depends on: 1027279
Depends on: 1027283
Allowing users for inapp purchases: 1) Create anonymous contribution at JWT creation in zamboni - Done 2) User logs in to persona in webpay during purchase Webpay stores email address when user logs in Ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=1027275 3) Webpay passes email address to zamboni during post purchase postback Ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=1027279 maybe as response.webpayEmail in the postback JWT https://github.com/mozilla/webpay/blob/master/webpay/pay/tasks.py#L278 4) Zamboni sets user during postback - Lazily create UserProfile - Ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=1027283 - example: https://github.com/mozilla/zamboni/blob/master/mkt/users/views.py#L156 - Set user foreign key on contribution - Ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=986614 Notes: - By pass the solitude buyer idea altogether
Depends on: 1028994
Depends on: 1040321
Depends on: 1040925
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.