# Connect platforms using the Sources API Considerations for Stripe Connect platforms adding support for new payment methods using the Sources API. > We deprecated the Sources API and plan to remove support for local payment methods. If you currently handle any local payment methods using the Sources API, you must [migrate them to the Payment Methods API](https://docs.stripe.com/payments/payment-methods/transitioning.md). > > While we don’t plan to remove support for card payments, we recommend replacing any use of the Sources API with the [PaymentMethods API](https://docs.stripe.com/api/payment_methods.md), which provides access to our latest features and payment method types. *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) platform owners can make use of additional payment methods supported with Sources. To learn more about creating payments for connected users, and which approach is best for you, refer to our Connect [payments and fees documentation](https://docs.stripe.com/connect/charges.md). ## Creating destination charges If you opt for [destination charges](https://docs.stripe.com/connect/destination-charges.md), you should create Sources on your platform directly and create Charges using the appropriate destination parameter. *Customers* (Customer objects represent customers of your business. They let you reuse payment methods and give you the ability to track multiple payments) are charged by your platform, which then transfers the necessary amount to the destination account. With destination charges that use cards, your platform name appears on statement descriptors and the charge is attributed to the connected account. With destination charges that use alternative payment methods (APMs), your platform name appears on statement descriptors but the charge is attributed to your platform. ## Creating direct charges If you opt for direct charges, you will need to make sure that the connected account is onboarded on the payment method you intend to use (see below). Direct charges require creating sources on connected accounts. You can do so by passing `source.stripeAccount` with a value of a connected account’s ID when using Stripe.js. ```javascript // Set the connected Stripe Account on which the source should be created var stripe = Stripe( '<>', {stripeAccount: "{{CONNECTED_STRIPE_ACCOUNT_ID}}"}, ); stripe.createSource({ type: 'ideal', amount: 1099, currency: 'eur', owner: { name: 'Jenny Rosen', }, redirect: { return_url: 'https://shop.example.com/crtA6B28E1', }, }).then(function(result) { // handle result.error or result.source }); ``` If you’re creating sources server-side, you can make use of [authentication using the Stripe-Account header](https://docs.stripe.com/connect/authentication.md#stripe-account-header) with any of our supported libraries. ### Cloning card Sources Card Sources (because they’re not intrinsically tied to your platform as they do not require any authentication [flow](https://docs.stripe.com/sources.md#flow-for-customer-action)) can be created on your platform and then cloned to a connected account to create direct charges there. Once you created a card Source and attached it to a Customer (see [Sources and Customers](https://docs.stripe.com/sources/customers.md) for more details on how these two objects interact), you can clone that card Source on a connected account using the connected account’s ID as the `Stripe-Account` header: #### curl ```bash curl https://api.stripe.com/v1/sources \ -u <>: \ -d "customer"="cus_AFGbOSiITuJVDs" \ -d "original_source"="src_19YP2AAHEMiOZZp1Di4rt1K6" \ -d "usage"="reusable" \ -H "Stripe-Account: {{CONNECTED_STRIPE_ACCOUNT_ID}}" ``` Card Sources are generally `reusable`. However, when cloning them, you can override the usage to constrain how the connected account uses them. You do so by specifying the `usage` as `single_use` when cloning the Source. If you are creating reusable card Sources on your connected account, you should make sure to attach them to Customers before charging them. Refer to [Sources and Customers](https://docs.stripe.com/sources/customers.md) for more details on how to attach and manage Sources on Customers. ## See also - [Supported Payment Methods](https://docs.stripe.com/sources.md) - [Sources API reference](https://docs.stripe.com/api.md#sources) - [Best Practices Using Sources](https://docs.stripe.com/sources/best-practices.md)