#doozy-button-js

1 messages ยท Page 1 of 1 (latest)

modern linden
#

Hello ๐Ÿ‘‹ What button did this file render specifically?
Do you have a screenshot that I can take a look at?

cedar ledge
#

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)

modern linden
#

huh do you know what this button was used for?

cedar ledge
#

even shows up in the wayback machine ๐Ÿ˜„

lime whale
#

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/ ?

cedar ledge
#

which, perhaps I could just copy that locally and reference it?

lime whale
#

no that seems unsafe

cedar ledge
#

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

lime whale
#

@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?

cedar ledge
#

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.

lime whale
#

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?

cedar ledge
#

HR does not believe it had the email address field in it but the rest looks correct

lime whale
#

The email address can be pre-filled

#

can you share your exact code?

cedar ledge
#

@lime whale I'm sorry but for which end, the front-end or the back-end?

lime whale
#

the back end

#

sorry

#

the front-end

cedar ledge
lime whale
#

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

cedar ledge
#

yikes. okay no worries

lime whale
#

thanks

#

the only bit I needed was the <script> part at the bottom

cedar ledge
#

and take your time, I need to handle something else so I'm going to be AFK for a little bit

lime whale
#

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 ๐Ÿ˜…

cedar ledge
#

this stuff happens, I've been in IT for 20+ years and have seen it all ๐Ÿ˜†

lime whale
cedar ledge
#

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! (๐Ÿคž)

lime whale
#

Ack, so yeah I think that button.js is like a v0 of our legacy Checkout product

cedar ledge
#

ln -s button.js checkout.js

#

or the other way, I always mess that up

lime whale
#

we're still digging into what happened that removed that domain suddenly but hopefully this solves the problem

cedar ledge
#

but jk, don't do that

lime whale
#

(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

cedar ledge
#

yeah, I think our old devs moved us to Stripe around 2012 based on internal documentation

lime whale
#

yeah I'm not surprised, predates me joining at least

cedar ledge
#

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*

lime whale
#

awesome!

cedar ledge
#

thank you for all the help, and sorry for wild goose chase

#

that was an easier fix than I was anticipating

#

take care!