The Wappler community is always helpful when I need help, so I love when I can give back. @TheBotfather and I were trying to figure out how to use the shipping rate ID in the Stripe Embedded Checkout shipping options. It's actually quite simple once you know which array key to use. The instinct is to use 'id' however, the correct key is 'shipping_rate'.
In this tutorial we'll be using 3 Data Management Actions. 'Create Array List', 'Add in Array List' and 'Get Array List Value'.
The shipping options parameter expects an array so we'll first add an action to create an array using 'Create Array List'. Give the list a name and click on 'Define Schema' and add a text variable called 'shipping_rate'
Now add the 'Add in Array List' action and choose the list you created with the 'shipping_rate' variable from the dropdown and put the shipping rate id as the value for the 'shipping_rate' variable.
You can find the shipping rate id in your Stripe dashboard-->Product Catalog-->Shipping Rates
Next add the 'Get Array List Value' action and give it a name then choose the shipping rate list from the dropdown. No need to output it.
Finally, set the value of the shipping options to the name of the 'Get Array List Value' action using the data picker and you're done!
The shipping rate should appear in the embedded checkout on the front end now.
If you'd like to have more than one shipping option, just add another 'Add in Array List' action with another shipping rate id
Hope this helps someone.
-Twitch