Skip to content
Snippets Groups Projects
Commit 948107e2 authored by mattwire's avatar mattwire
Browse files

Fix plan parameter for subscription

parent c8510cb2
Branches
Tags
No related merge requests found
......@@ -837,12 +837,12 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
}
// Create the stripe plan
$planId = self::createPlan($propertyBag, $amountFormattedForStripe);
$plan = self::createPlan($propertyBag, $amountFormattedForStripe);
// Attach the Subscription to the Stripe Customer.
$subscriptionParams = [
'proration_behavior' => 'none',
'plan' => $planId,
'plan' => $plan->id,
'metadata' => ['Description' => $propertyBag->getDescription()],
'expand' => ['latest_invoice.payment_intent'],
'customer' => $stripeCustomer->id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment