Hi, I’m using webpacker and I’ve got a product image I want to pass to my stripe checkout session, but webpacker adds a suffix to the file name, and when I attempt to pass that image to stripe it can’t find it.
Anyone, know how to determine what suffix to add to my image, so it can render properly?
You’ll want to use the asset_pack_url helper to compute the url to the Webpacker image from its canonical name. If the url needs to be calculated outside the context of a view, use include Webpacker::Helper to pull in the module which defines the helper method.