Closed Bug 1032861 Opened 10 years ago Closed 10 years ago

polyfill mozPaymentProvider on SPA

Categories

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

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kumar, Assigned: scolville)

Details

(Whiteboard: [qa-])

Lots of code needs to declare things this at the top:

var paymentSuccess = (utils.mozPaymentProvider.paymentSuccess || window.paymentSuccess);

Instead, let's polyfill mozPaymentProvider for older devices in utils.js so that all code can simply call utils.mozPaymentProvider.paymentSuccess() with confidence.

It may not make sense to try and polyfill everything. We could at least start with paymentSuccess and paymentFailed.
Whiteboard: [qa-]
Assignee: nobody → scolville
Status: NEW → ASSIGNED
Priority: -- → P4
https://github.com/mozilla/spartacus/commit/ed2fd4badedecb82a17dc766e55201d712491a67
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.