Index: content/test/data/payments/payment_app_invocation.html |
diff --git a/content/test/data/payments/payment_app_invocation.html b/content/test/data/payments/payment_app_invocation.html |
index 5b74c69a62de824244a0c1c998d642c54d0b8937..79ba835f9d4e9195d7edbb16bf74cd0d36dcbb5f 100644 |
--- a/content/test/data/payments/payment_app_invocation.html |
+++ b/content/test/data/payments/payment_app_invocation.html |
@@ -9,10 +9,23 @@ function registerPaymentApp() { |
return navigator.serviceWorker.ready; |
}) |
.then(registration => { |
- return registration.paymentManager.instruments.set('payment-app-id', { |
- name: 'Visa ****', |
- enabledMethods: ['basic-card'] |
- }); |
+ const instrumentPromises = [ |
+ registration.paymentManager.instruments.set( |
+ 'basic-card-payment-app-id', |
+ { |
+ name: 'Visa ****', |
+ enabledMethods: ['basic-card'] |
+ }), |
+ |
+ registration.paymentManager.instruments.set( |
+ 'bobpay-payment-app-id', |
+ { |
+ name: "Bob Pay", |
+ enabledMethods: ['https://bobpay.com'] |
+ }), |
+ ]; |
+ |
+ return Promise.all(instrumentPromises); |
}) |
.then(result => { |
sendResultToTest('registered'); |