What I’m trying to do:
- add a logo to the stripe checkout page
What I’ve tried and what’s not working:
- initial break was using the default anvil logo; I wondered if this was because assets might have moved so I uploaded my own per these docs Anvil Docs | Themes and Styling and received the following error
logoUrl (https://j23wto3js2awd434.anvil.app/debug/I5BQM7ZL6LTVDJU5S7FGVO2S77H2TVBS%3DEZNIW36U26QXXGC2DT4RWRIA/_/api/_/theme/bluearch_logo.PNG) failed to load.
- the below code used to populate my personal asset / logo was pulled from this post Removing Anvil.Works Icon from Stripe - #2
Code Sample:
# code snippet
token, info = stripe.checkout.get_token(amount=50000, currency="USD",
icon_url=anvil.server.get_api_origin()+"/_/theme/bluearch_logo")