#doozy-button-js
1 messages ยท Page 1 of 1 (latest)
Hello ๐ What button did this file render specifically?
Do you have a screenshot that I can take a look at?
forewarning I am not the original developer buuut here is the section where the JS file is referenced (attached). My guess is once the resource loads properly the button is supposed to change to visible but due to the 503 that's not happening.
(and yes I know it's a public key and anyone can see it but I just decided to mark it out, let me know if you need more info)
huh do you know what this button was used for?
it was a button labeled "Add Card" on a form that allowed people to update their credit cards on file with us, the page is at https://www.acceleration.net/support/credit-card-information/ and previously there would be the "Add Card" button at the bottom
I see the button.js resource mentioned on https://stackoverflow.com/questions/12925734/setting-data-attribute-on-stripe-button which was 10 years ago so I know others were using it
even shows up in the wayback machine ๐
that button is not from Stripe as far as I know. Do you know what clicking on this looked like? was it like this button: http://jsfiddle.net/6a5vubwj/ ?
okay let me ask our billing lady...I never deal with this page so she'll know if that's what it looked like or not, please give me a second. btw the wayback machine saved a copy of the https://button.stripe.com/v1/button.js file to https://web.archive.org/web/20220119082439js_/https://button.stripe.com/v1/button.js so the resource definitely used to exist on your servers
which, perhaps I could just copy that locally and reference it?
no that seems unsafe
yeah and I tried it (I just pointed it to the wayback's archive of it as a test) and it did load the button but upon attempting to click "Add Card" it generated an error:
"The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."
my wild guess is it's checking perhaps checking the resource and since it doesn't have stripe.com in it it's failing? I don't know.
Anyway, to answer hoopajah's question about the jsfiddle code, I spoke to our HR lady and she believes she remembers that upon clicking "Add Card" it just asked for the card number and expiration, not an email address (since that's already being requested on the form)
it seems odd to me buttons.js was removed without any changelog or bulletin but perhaps I haven't stumbled upon that information yet? the file clearly was on the Stripe servers up until recently
@cedar ledge it's hard to help without a bit more specific details unfortunately but I'm looking into it. I've worked at Stripe for 7 years and I have never heard of this button, it must be extremely old. But still if it existed and worked it shouldn't have broken
But what's important is to try and gather more context on what your page does/used to do.
Someone at your company must remember exactly what it looked like. Did it have the exact same "behaviour" as the one I shared where a modal appears?
Understood. Okay, so on https://www.acceleration.net/support/credit-card-information/ the customer would type in their account number (e.g. 1234), their business or name, their email address, and a contact phone number, and then once the customer did that they would then click the "Add Card" button which would pull up the Stripe modal to take their card number to generate the token. This would then send an email to HR with a link for them to click on which would update the client's record as long as the information (account number I'm guessing) was a match. I am trying to find an old email to see how our existing programmers were handling this but I'm guessing it was a URL with the token and account ID being passed to one of our internal web pages that then updated our billing system.
would pull up the Stripe modal to take their card number to generate the token
that's the part I really need. Is that model exactly the modal I showed you earlier?
HR does not believe it had the email address field in it but the rest looks correct
@lime whale I'm sorry but for which end, the front-end or the back-end?
wouldn't that be available in view-source:https://www.acceleration.net/support/credit-card-information/ or am I misunderstanding you? ๐
Sure, can you share this exact part of your code instead of me digging in the code? There are 17 other people talking to me right now unfortunately
yikes. okay no worries
I think this is the meaty parts of it, I excluded everything else that didn't seem pertinent
and take your time, I need to handle something else so I'm going to be AFK for a little bit
we're digging into what's going on. It had been a long time since someone shared a product I had never even heard of ๐
this stuff happens, I've been in IT for 20+ years and have seen it all ๐
Can you try to change your code to reference https://checkout.stripe.com/checkout.js instead of the old link and see if that fixes things?
sure, one moment
I think that did the trick! The button and modal are loading! I will do more testing but I think we're good now! (๐ค)
Ack, so yeah I think that button.js is like a v0 of our legacy Checkout product
we're still digging into what happened that removed that domain suddenly but hopefully this solves the problem
but jk, don't do that
(haha I have the same confusion with ln every time ๐
)
And while I have you: while this should never have broken, the Legacy Checkout product was deprecated almost 4 years ago now. You/your team should really look into a newer integration
yeah, I think our old devs moved us to Stripe around 2012 based on internal documentation
yeah I'm not surprised, predates me joining at least
yeah, unfortunately we kind of changed direction with what we used to do inhouse (we had several programmers) and so that codebase has slowly aged over time...we will be moving to a newer billing system with Stripe integration hopefully by January (we're just beginning to work with importing our dat to them now) but until then we'd like to keep our little button ๐ lol
data*
awesome!