The payment action of PayPal it's set to authorization (I need it, I can't set to sale), therefore then I need to capture the payment.
I know that I can do it manually from the invoice sending page, but I need to capture the payment automatically after 6 hours from the order time.
Could you suggest how to do that cron, and the function to capture the money automatically after 6 hours?
Best Answer
The code to do it is fairly simple, you would need to create a cronjob and a datetime check.