Closed Bug 755077 Opened 12 years ago Closed 12 years ago

[in-app] We don't return to the app after setting up pre-auth during in-app purchases

Categories

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

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: krupa.mozbugs, Unassigned)

References

Details

(Keywords: qawanted)

NOTE: Tester does not have pre-auth set up

steps to reproduce:
1. Install https://marketplace-dev.allizom.org/en-US/app/in-app-payment-tester/?src=ss
2. Launch the app
3. In the app, click call mozmarket.buy()
4. Start the pre-auth authorization process
5. Complete the process

observed behavior:
We don't return to the app after setting up pre-auth during in-app purchases
Depends on: 752060
Blocks: 745006
Summary: We don't return to the app after setting up pre-auth during in-app purchases → [in-app] We don't return to the app after setting up pre-auth during in-app purchases
is this possible in WebRT?
Bill, do you know if this is possible?  I haven't heard of a method to do it.
Blocks: 698116
No longer blocks: 752013
Priority: -- → P5
Adding Ed Lee, who might have an answer.
This seems to work for me:

generating a signed JWT request...
mozmarket.buy("eyJhbG..", onBuySuccess, onBuyError);
mozmarket.buy() success!
watching for a postback/chargeback...
received postback
new transaction state: paid
Priority: P5 → P2
No longer depends on: 752060
The underlying issue in this bug sounds like it's related to bug 752666 instead of the other bug identified. Re-test this when bug 752666 lands.
Depends on: 752666
Here is the main problem we're trying to solve:

1. User starts pay flow in app, gets redirected to Marketplace and eventually PayPal to set up preauth
2. User finishes preauth setup in PayPal, is redirected to Marketplace, and does not know what to do next

One idea is we can use a special URL to trigger Marketplace to display a message like "your PayPal pre-auth has been set up. Close this window and go back to Name Of Cool App ..."

I don't think we can automatically close the window and re-focus the app.
Flagging qawanted - the prerequiste bug to modify the implementation for off-origin rules for desktop has landed and is verified. Needs to be re-tested.
Keywords: qawanted
blocking-kilimanjaro: --- → ?
closing this bug which is for the old payment system
Status: NEW → RESOLVED
blocking-kilimanjaro: ? → ---
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.