polyfill mozPaymentProvider on SPA

RESOLVED FIXED

Status

Marketplace
Payments/Refunds
P4
normal
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: kumar, Assigned: scolville)

Tracking

x86
Mac OS X
Points:
---

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
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.