Active
Project:
Ubercart Stripe
Version:
7.x-2.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jun 2018 at 13:44 UTC
Updated:
25 Jun 2018 at 13:44 UTC
Jump to comment: Most recent
Comments
Comment #2
rnashth commentedTo authorize a payment without capture, edit the charge code (starting at line 518 in uc_stripe.module) to set capture to false:
// charge the Customer the amount in the order
$charge = \Stripe\Charge::create(array(
"amount" => $amount,
"currency" => strtolower($order->currency),
"customer" => $stripe_customer_id,
"capture" => false,
"description" => t("Order #@order_id", array("@order_id" => $order_id)),
)
);