await stripe.paymentIntents.create({ payment_method_types: ['card'], amount: 1000, currency: 'usd', application_fee_amount: 200 }, { stripe_account: '{{CONNECTED_STRIPE_ACCOUNT_ID}}', });

await stripe.paymentIntents.create({ payment_method_types: ['card'], amount: 1000, currency: 'usd', application_fee_amount: 200, transfer_data: { destination: '{{CONNECTED_STRIPE_ACCOUNT_ID}}', }, });

// Create a PaymentIntent: await stripe.paymentIntents.create({ amount: 10000, currency: 'usd', payment_method_types: ['card'], application_fee_amount: 200, transfer_group: : '{ORDER10}' }); // Create a Transfer to a connected account (later): await stripe.transfers.create({ amount: 7000, currency: 'usd', destination: '{{CONNECTED_STRIPE_ACCOUNT_ID}}', transfer_group: : '{ORDER10}' }); // Create a second Transfer to another connected account (later): await stripe.transfers.create({ amount: 2000, currency: 'usd', destination: '{{OTHER_CONNECTED_STRIPE_ACCOUNT_ID}}', transfer_group: : '{ORDER10}' });

await stripe.topups.create({ amount: 2000, currency: 'usd', description: 'Top-up for week of May 31', statement_descriptor: 'Weekly top-up', });

await stripe.payouts.create({ amount: 1000, currency: 'usd', }, { stripe_account: '{{CONNECTED_STRIPE_ACCOUNT_ID}}', });

await stripe.payouts.create({ amount: 1000, currency: 'usd', method: 'instant', }, { stripe_account: '{{CONNECTED_STRIPE_ACCOUNT_ID}}', });

await stripe.subscriptions.create({ customer: 'cus_4fdAW5ftNQow1a', items: [ { price: 'price_H1y51TElsOZjG', }, ], expand: ['latest_invoice.payment_intent'], }, { stripe_account: '{{CONNECTED_STRIPE_ACCOUNT_ID}}', });

await stripe.transfers.create({ amount: 1500, currency: 'usd', destination: '{{PLATFORM_STRIPE_ACCOUNT_ID}}' }, { stripe_account: '{{CONNECTED_STRIPE_ACCOUNT_ID}}', });