Closed Bug 752809 Opened 12 years ago Closed 12 years ago

'Payment Error' during making an in-app purchase

Categories

(Marketplace Graveyard :: Payments/Refunds, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
2012-05-10

People

(Reporter: krupa.mozbugs, Assigned: kumar)

Details

Attachments

(1 file)

Attached image screenshot
Note: Tester is logged in and has preauth set up

steps to reproduce:
1. Go to http://inapp-pay-test.farmdev.com/en-US/
2. Click on call mozmarket.buy()
3. Click on the purchase button

expected behavior:
in-app purchase is successful

actual behavior:
in-app purchase fails with 'Payment Error'. See screenshot

Hopefully it is some temporary PayPal issue.
In the logs I see two errors about expired JWT tokens. This leads me to think that the JSON was cached when you submitted it. This is sort of a design flaw in the tester app but not in-app payments itself. The tester sets the token to expire in 30 minutes from when you load the page. However, if you press the refresh button, it will not regenerate the token. The best way to regenerate a fresh token is to quit and restart if you're running the app. Otherwise, close your tab and re-open it at the same URL. This will ensure you have a fresh token.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
This was happening since my Paypal accounts for bother seller and buyer were the same.

I can see devs hitting this issue when testing in-app purchases for their apps. But that is an edge-case not worth worrying about.
Also, the developer sandbox (bug 734516) will provide informative errors.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: