#sanjeewa
1 messages · Page 1 of 1 (latest)
Hi there. So you want to manually create recurring payments on connected accounts, am I right?
You can do that but I also want to let you know you can let Stripe to collect recurring payments through Subscriptions API. Are you interested in it or you still prefer to do the recurring payments through cron jobs?
Yes I want to do it manually from my system through cron?
I did this , but payment intent is created on platform
$paymentIntent = $this->stripe->paymentIntents->create([
'amount' => $amount*100,
'currency' => $currency,
'customer' => $customer_id,
'payment_method' => $payment_method_id,
'off_session' => true,
'confirm' => true,
'metadata' =>['payment_id'=>$payment_id]
],
['idempotency_key' => $idempotency_key
]);
You should specify a stripe_account in the request.
By specifying a stripe_account, you are telling Stripe that you want to make an API call on behalf of a connected account. You can refer to this doc to learn more about making API request for connected account (https://stripe.com/docs/connect/authentication)
Thanks I will check