Accept.js - Library not coming from Accept CDN error

Created on 14 September 2018, over 6 years ago
Updated 9 June 2023, over 1 year ago

There are a few mentions of a possibly similar issue on the tail end of the closed Accept.js integration ticket for 8.x, but in certain scenarios, there is a console warning that the Accept.js "Library is not coming from Accept CDN" and a possibility for payments to not go through for seemingly the same reason. This error is presented when AcceptCore.js tries to validate the url of the Accept.js library src against its expected string of 'https://js.authorize.net/v1/Accept.js' (needs an exact match).

I'm seeing it on order admin edit pages, where the administrator can use the "Payments" tab to enter card data and submit to payment processor. Because the payment info display is loaded via AJAX, the script gets the default cache prevention mechanism of appending ?_=[timestamp] to the src, which then leads to a src of something like "https://js.authorize.net/v1/Accept.js?_=1536956938378", which fails validation.

Not sure what a solution might be- I could allow admins to use the old AIM server-side method for admin entered payments, but I think that would mean we don't get to keep our simple PCI-A status...

Any ideas?

πŸ› Bug report
Status

Active

Version

1.6

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States matthensley Portland, OR

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024