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

Fix plan parameter for subscription

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