Line Items Retrieved in Stripe Checkout not outputting

Wappler Version : 6.7.3
Operating System : Mac OS 14.4.1
Server Model: NodeJS
Database Type: MySQL
Hosting Type: Docker

Expected behavior

What do you think should happen?

The line items are part of the data retrieved by the Retrieve Checkout Session api action and should be output along with everything else.

Actual behavior

What actually happens?

They appear in the server connect file, as well as in the data bindings in the front end server connect component, however they do not output to the front end where they can be displayed in a repeat.

Screenshot 2024-07-16 at 8.24.22 AM

How to reproduce

Create a server connect file with Retrieve Checkout Session. Call this file from a server connect on the front end. Set a table body to repeat using the line items from the data picker.

Thanks in advance,
Twitch

Not so much a bug, but definitely a feature request!

Expandable attributes are not currently supported in Wappler (unless they snuck it in recently.)

You can see here that the line items is "expandable".

For now you will need to retrieve them in a second api call. I think it is called List checkout session line items.

Thanks as always @mebeingken. I'll give that a try! I'll change this to a feature request.

After Ken's answer, I have changed this post to a feature request.

I can confirm, the Wappler server connect element List Checkout Session Line Items will work to let you retrieve data from the line_items

@GraybeardCoder, I had to create a separate api action for the line items.

-Twitch

If it's working for ya, then don't fix what's not broken. Your approach probably lets you 'repeat' through all of the key value pairs while the Wappler approach doesn't out of the box...even though I should be able to treat it like a JSON object.

However, for people who are more comfortable using the native Wappler elements within their server connect API's, the "List Checkout Session Line Items' will work. Stripe's relatively new CLI, offered on Stripe's website while you are logged into your account, let's you query transactions and checkout sessions easily, listing all key value pairs so you can quickly see what's populated.