InvalidElementPresentError

The developer has an element with a forbidden/clashing ID on the page.

Properties

invalidElementPresentError.js
JS
JavaScript

try {

  payments.googlePay(paymentReq);

}

catch(e) {

  alert(`Google Pay could not be initiated due to: ${e.name} ${e.message}`);

}