Closed webexpert4rv closed 5 years ago
When creating a charge, you can pass capture = false
so that the charge is not captured immediately, example:
$charge = Stripe::charges()->create([
'capture' => false,
'customer' => 'cus_4EBumIjyaKooft',
'currency' => 'USD',
'amount' => 50.49,
]);
Then when you're ready to capture the charge you can do:
Stripe::charges()->capture('ch_4ECWMVQp5SJKEx');
You'll need to pass the charge id you want to capture of course.
Hope it helps.
Closing due to lack of activity. Feel free to reopen if you still have issues or other questions.
Can anyone let me know how can I charge a customer later on via cron job?