payment gateway - Stripe auth and capture -
i stuck question have implemented instant payment method of stripe payment gateway want change instant payment two-step payments method because of requirement.
i'm refering does stripe support auth , capture?. saying
note charge must captured within 7 days or cancelled.
but want auto capture charge without cancellation within 1 or 2 days if possible.
help me if there idea this.
your appreciated.
https://stripe.com/docs/api#create_charge
capture
optional, default true
whether or not capture charge. when false, charge issues authorization (or pre-authorization), , need captured later. uncaptured charges expire in 7 days. more information, see authorizing charges , settling later.
so, first off, create charge, now, capture
set false.
then, when want charge customer, call charge capture method, passing in id of charge created in above step.
unfortunately, there's no way of automatically doing this, you're going need write code - maybe cron job or scheduled task fire off capture charge part in x number of days
Comments
Post a Comment