#Valma
1 messages · Page 1 of 1 (latest)
Hi
So I would like to add an image in my product_data
But it seems that it only accept internet url
Is there a way to use an image from the website files ?
Did you understand ?
The image has to able to be fetched from an HTTPS URL
How can I do that with images in my folder ?
You will need to host them at an endpoint that can be accessed via HTTPS
Otherwise you create the Product ahead of time
And then you can upload the image
But if you do it inline in product_data it has to be an accessible URL
It sounds like you want to just create your Product ahead of time. You can do this right through your Dashboard and upload the file directly there
Then pass that Product ID to product: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product
Ok thanks
Sure
Well, so I tried to host my images folder on my server hosting and access my image through https
But I check the Stripe Session there's just a blank space
Where can I see the error ?
What are you using as your content-type?
Like oftentimes this has to do with an issue there. See: https://stackoverflow.com/questions/59532070/empty-picture-on-checkout-stripe for example
application/json
I mean the folder access is protected so maybe that's why
because its the direct access to my server files
do you know any site, where you can post your folder online to access it ?
I don't have a recommended site off the top of my head, no.
do dropbox images work ?
Not positive. Would recommend testing it
Oh and quick question
If I want to use the product instead of product_data
where do I find my product id ?
You grab it from the Dashboard or you can list your Products via the API: https://stripe.com/docs/api/products/list
Alright
That looks easier, I'll stick with this
I also have another question
Is it possible to delete a payment link once I created it ?
So, I guess I can make as much as I want ?
Yep there is no limit