react-square-payment-form icon indicating copy to clipboard operation
react-square-payment-form copied to clipboard

Uncaught AnalyticsParametersRequiredError: The Analytics library must be initialized with analyticsParameters to call verifyBuyer

Open spenweb opened this issue 5 years ago • 1 comments

I get this error when submitting the payment form which prevents the submission to complete. I could not find a reference to the "Analytics library" or "analyticsParameters". Direct link to Squareup documentation: https://developer.squareup.com/docs/api/paymentform#verifybuyer. Error in JavaScript Console:

data.js:15 Uncaught AnalyticsParametersRequiredError: The Analytics library must be initialized with analyticsParameters to call verifyBuyer.
    at r (https://js.squareupsandbox.com/payments/data.js:15:1054)
    at Object.AnalyticsParametersRequiredError (https://js.squareupsandbox.com/payments/data.js:15:1195)
    at s.verifyBuyer (https://js.squareupsandbox.com/payments/data.js:10:20066)
    at Object.verifyBuyer (https://js.squareupsandbox.com/v2/paymentform:1:83642)
    at St.verifyBuyer (https://js.squareupsandbox.com/v2/paymentform:1:158157)
    at Object.cardNonceResponseReceived [as current] (http://localhost:3000/static/js/1.chunk.js:248450:32)
    at http://localhost:3000/static/js/1.chunk.js:248750:24
    at mt._cardNonceResponseReceived (https://js.squareupsandbox.com/v2/paymentform:1:153528)
    at mt.receiveMessageCallback (https://js.squareupsandbox.com/v2/paymentform:1:149993)
r @ data.js:15
AnalyticsParametersRequiredError @ data.js:15
s.verifyBuyer @ data.js:10
verifyBuyer @ paymentform:1
St.verifyBuyer @ paymentform:1
cardNonceResponseReceived @ SquarePaymentForm.tsx:133
(anonymous) @ useDynamicCallback.ts:8
mt._cardNonceResponseReceived @ paymentform:1
mt.receiveMessageCallback @ paymentform:1

spenweb avatar Aug 22 '20 00:08 spenweb

Sorry for the delay! Are you still seeing this error?

DavidRagone avatar Sep 03 '20 21:09 DavidRagone