Is it possible to configure Ubercart Stripe to authorize a payment only, without charging the credit card? We prefer to review transactions in the Stripe dashboard and then capture them after review. In the Stripe gateway configuration there is the option only to "authorize and capture immediately," with a note that "Only available transaction types are listed. The default will be used unless an administrator chooses otherwise through the terminal." But it is not clear what the note means.

Comments

rnashth created an issue.

rnashth’s picture

To 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)),
)
);