Closed Bug 1423053 Opened 7 years ago Closed 6 years ago

Support accepting a payment request from the UI (with dummy data)

Categories

(Firefox :: WebPayments UI, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 59
Tracking Status
firefox59 --- fixed

People

(Reporter: MattN, Assigned: MattN)

Details

Attachments

(2 files)

When the user clicks Pay, tell the DOM code and pass along the minimal dummy data required by the API so that the dialog can close. Later bugs will actually allow the user to pick their CC and address.

This will facilitate more manual testing of the common flow.
Priority: -- → P1
Comment on attachment 8935224 [details]
Bug 1423053 - Close the PaymentRequest UI when complete is called.

https://reviewboard.mozilla.org/r/206100/#review214024

::: toolkit/components/payments/paymentUIService.js:76
(Diff revision 2)
>  
>    completePayment(requestId) {
>      this.log.debug("completePayment:", requestId);
>      let completeResponse = Cc["@mozilla.org/dom/payments/payment-complete-action-response;1"]
>                               .createInstance(Ci.nsIPaymentCompleteActionResponse);
> -    completeResponse.init(requestId, Ci.nsIPaymentActionResponse.COMPLTETE_SUCCEEDED);
> +    completeResponse.init(requestId, Ci.nsIPaymentActionResponse.COMPLETE_SUCCEEDED);

Should we be using COMPLETE_FAILED here if the dialog isn't found?
Attachment #8935224 - Flags: review?(jaws) → review+
Comment on attachment 8935225 [details]
Bug 1423053 - Support accepting a payment request from the UI (with dummy data).

https://reviewboard.mozilla.org/r/206102/#review214232

::: toolkit/components/payments/test/unit/test_response_creation.js:89
(Diff revision 2)
> +    addressLines: [
> +      "123 Sesame Street",
> +      "P.O. Box ABC",
> +    ],
> +    region: "ON",
> +    city: "Delhi",

+1
Attachment #8935225 - Flags: review?(jaws) → review+
Pushed by mozilla@noorenberghe.ca:
https://hg.mozilla.org/integration/autoland/rev/04fc5cd20916
Close the PaymentRequest UI when complete is called. r=jaws
https://hg.mozilla.org/integration/autoland/rev/131e43affb8f
Support accepting a payment request from the UI (with dummy data). r=jaws
Pushed by mozilla@noorenberghe.ca:
https://hg.mozilla.org/integration/autoland/rev/6604f8508dd9
Close the PaymentRequest UI when complete is called. r=jaws
https://hg.mozilla.org/integration/autoland/rev/a25d929f127e
Support accepting a payment request from the UI (with dummy data). r=jaws
Flags: needinfo?(MattN+bmo)
https://hg.mozilla.org/mozilla-central/rev/6604f8508dd9
https://hg.mozilla.org/mozilla-central/rev/a25d929f127e
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Product: Toolkit → Firefox
Target Milestone: mozilla59 → Firefox 59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: