At the moment, the only mapped fields within embedded checkout for Stripe are the amount, quantity, currency, and title. Given that the Reference option returns Stripe-hosted images that are returned by price_id, it would be great if the line_items.product_data.images{} could be bindable with image and description field too, when custom_reference is selected!
I have resorted to creating my own Stripe embedded checkout session component that inserts images and descriptions, however, I am always trying to use native Wappler components for future updates and improvements. I really believe this will benefit many developers in the future, especially when dealing with a large quantity of products.
I am adding thumbnails from database records to the created line_items array component, which is then added to the array of line_items, or I simply hard-coded an array of a single image.
At first, I was trying to target the price_data.product_data.images prefix, but without success. I then realized that the values from Wappler’s line_items are already mapped, since the title is part of product_data, and the price and currency are part of the parent price_data element.