{"version":"1.0","type":"rich","title":"Stripe payment API (NodeJS snippet)","description":"This example demonstrates a server-side payment charge using the Stripe payment API, executed through a Node.js snippet. The code initializes the Stripe client with a secret key from environment variables and then calls `stripe.charges.create` to process a transaction. It specifies an amount of 50 dollars (converted to cents), sets the currency to USD, and passes a Stripe token as the payment source, along with a description that includes a user ID. The snippet relies on the `stripe` npm library and accesses data from an external object (`dataObj`), but does not show the actual HTTP request or response handling.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-c3afd6176c3962904d72d37e69671146?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}