Closed
Bug 1016685
Opened 11 years ago
Closed 11 years ago
Cannot begin a transaction from fxpay.purchase()
Categories
(Marketplace Graveyard :: Payments/Refunds, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
2014-06-03
People
(Reporter: kumar, Assigned: kumar)
References
Details
(Whiteboard: [qa-])
STR
- create an in-app product in DevHub
- make a purchase with fxpay.purchase(productId)
The JWT needs updating for the recent public_id change. I get this traceback in WebPay:
Traceback (most recent call last):
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/django/core/handlers/base.py", line 113, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/django/views/decorators/http.py", line 41, in inner
return func(request, *args, **kwargs)
File "/Users/kumar/dev/webpay/webpay/base/decorators.py", line 11, in wrapper
response = func(*args, **kw)
File "/Users/kumar/dev/webpay/webpay/pay/views.py", line 146, in configure_transaction
if not tasks.configure_transaction(request, mcc=mcc, mnc=mnc):
File "/Users/kumar/dev/webpay/webpay/pay/tasks.py", line 99, in configure_transaction
[p.name for p in providers])
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/celery/app/task.py", line 358, in delay
return self.apply_async(args, kwargs)
File "/Users/kumar/.virtualenvs/webpay/src/nuggets/celeryutils.py", line 22, in apply_async
return super(Task, self).apply_async(args, kwargs, **options)
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/celery/app/task.py", line 462, in apply_async
return self.apply(args, kwargs, task_id=task_id, **options)
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/celery/app/task.py", line 634, in apply
request=request, propagate=throw)
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/celery/task/trace.py", line 326, in eager_trace_task
uuid, args, kwargs, request)
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/celery/task/trace.py", line 228, in trace_task
R = retval = fun(*args, **kwargs)
File "/Users/kumar/.virtualenvs/webpay/src/nuggets/celeryutils.py", line 35, in wrapped
return fun(*args, **kw)
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/multidb/pinning.py", line 46, in decorator
return func(*args, **kw)
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/multidb/pinning.py", line 46, in decorator
return func(*args, **kw)
File "/Users/kumar/.virtualenvs/webpay/lib/python2.7/site-packages/django/db/transaction.py", line 223, in inner
return func(*args, **kwargs)
File "/Users/kumar/dev/webpay/webpay/pay/tasks.py", line 231, in start_pay
provider_names)
File "/Users/kumar/dev/webpay/webpay/pay/tasks.py", line 160, in get_provider_seller_uuid
key=settings.KEY, product_data=product_data
ValueError: Marketplace localhost did not put a public_id in productData: {u'addon_id': [u'111'], u'inapp_id': [u'1'], u'application_size': [u'None'], u'contrib_uuid': [u'5fc8aa97-242f-4d9c-9d7f-495d93073a57']}
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → kumar.mcmillan
Priority: -- → P1
| Assignee | ||
Comment 1•11 years ago
|
||
Fixed: https://github.com/mozilla/zamboni/pull/2101
This adds a public_id to the in-app JWT. On the Webpay side it still treats it mostly like an app purchase as far as setting up the payment. The external_id in productData kicks it into in-app purchase mode.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Target Milestone: --- → 2014-06-03
You need to log in
before you can comment on or make changes to this bug.
Description
•