Skip to content

Commit c177896

Browse files
authored
Add hook to let other plugins change the success_url and cancel_url
1 parent c66dd56 commit c177896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/gateways/class-stripe-checkout-gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public function run_preflight() {
347347
$subscription_data['subscription_data']['trial_end'] = $this->order->get_billing_start_date();
348348
}
349349

350-
$session = $this->get_stripe_client()->checkout->sessions->create($subscription_data);
350+
$session = $this->get_stripe_client()->checkout->sessions->create(apply_filters('wu_stripe_checkout_subscription_data', $subscription_data, $this));
351351

352352
// Add the client secret to the JSON success data.
353353
return [

0 commit comments

Comments
 (0)