# Issuing and Treasury for platforms sample app Learn how to onboard customers, issue cards, and make outbound payments. You can find the app’s [complete source code](https://github.com/stripe-samples/issuing-treasury) on GitHub. To see how you can use Issuing and Treasury for platforms APIs in your integration, try our sample app. It lets you onboard as a customer, create cards, test authorizations, and make outbound payments from a financial account. Without writing any code, you can also copy the sample app to use with your platform, following the API logs generated by your actions. [Try our sample app](https://baas.stripe.dev/auth/register) [![The Issuing and Treasury for platforms demo app Card details page](https://b.stripecdn.com/docs-statics-srv/assets/issuing-treasury-demo-app.54ad51387e0606a4b240347f4cb02cfb.png) The Issuing and Treasury for platforms sample app card details page ](https://baas.stripe.dev/auth/register) This app is for [platforms onboarding business customers](https://docs.stripe.com/issuing/connect.md#when-to-use-connect). If you only need cards for yourself or your own employees, use [Issuing in the Dashboard](https://dashboard.stripe.com/test/issuing/overview) instead. # Copy the sample app # Copy the sample app When you copy the app and use it with your own Stripe API keys, use your Dashboard to: - View and edit objects you create from the app. - Follow [API logs](https://dashboard.stripe.com/test/logs) generated by your actions in the sample app. - Add your logo and colors to configure the app’s onboarding forms. After you finish copying the sample app, follow the steps in [Use our sample app](https://docs.stripe.com/issuing/sample-app.md?use-or-copy-sample-app=use-sample-app). ## Before you begin 1. [Register your platform](https://dashboard.stripe.com/connect/tasklist). 2. [Enable Treasury for platforms and Issuing](https://docs.stripe.com/treasury/connect/access.md) in a *sandbox* (A sandbox is an isolated test environment that allows you to test Stripe functionality in your account without affecting your live integration. Use sandboxes to safely experiment with new features and changes) environment for testing. Your web app won’t work until you complete this step. 3. [Customize brand settings](https://dashboard.stripe.com/settings/connect/stripe-dashboard/branding). Adding a business name, icon, and brand color is required for *Connect* (Connect is Stripe's solution for multi-party businesses, such as marketplace or software platforms, to route payments between sellers, customers, and other recipients) Onboarding. ## Choose how to deploy the app You can choose to either deploy the app to a shareable web link or copy the source code. #### Deploy to a shareable web link Without writing code, you can use Render to get your own unique, public URL (for example, https://issuing-treasury-xyz1.onrender.com). 1. Click **Deploy to Render**, and then complete the signup process to create a free Render account. [Deploy to Render](https://render.com/deploy?repo=https://github.com/stripe-samples/issuing-treasury) 2. On the Blueprints screen, enter the following: - **Blueprint Name**: Type any name (for example, “Demo”) - **Branch**: Select `main` - **NEXT\_PUBLIC\_STRIPE\_PUBLISHABLE\_KEY**: Log in to see your publishable API key *(starts `with pk_test`)* - **STRIPE\_SECRET\_KEY**: Log in to see your secret API key *(starts with `sk_test`)* 3. Click **Apply**. 4. Wait for Render to finish deploying (which can take up to 5 minutes), then click **issuing-treasury**. ![Your unique URL shown on Render's website](https://b.stripecdn.com/docs-statics-srv/assets/render-create-webservice-issuing-treasury.7fccd99a307610d8ff42bc8f2628bb0c.png) 5. On the next page, click your unique URL to open the web app. ![Your unique URL shown on Render's website](https://b.stripecdn.com/docs-statics-srv/assets/issuing-treasury-onrender-url.3624704c9826a8866f8015adea7a9cae.png) #### Copy the source code To create test Issuing and Financial Account objects through the web app and view API logs in real time, go to [GitHub](https://github.com/stripe-samples/issuing-treasury). Follow the [README](https://github.com/stripe-samples/issuing-treasury#stripe-issuing-and-treasury-an-embedded-finance-starter-application) to properly copy and configure the sample app as well as [set up Postgres](https://github.com/stripe-samples/issuing-treasury#database-setup) and other components.