0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed stripe checkout not working on plan upgarde

no issue

- Incorrectly passed plan name was causing bad stripe request
This commit is contained in:
Rish 2020-09-17 19:24:56 +05:30
parent 5caa8433d9
commit fb13d12015

View file

@ -295,7 +295,7 @@ export default class AccountPlanPage extends React.Component {
const subscriptionId = subscriptions[0].id;
onAction('updateSubscription', {plan: confirmationPlan.name, subscriptionId, cancelAtPeriodEnd: false});
} else {
onAction('checkoutPlan', {plan: selectedPlan.name});
onAction('checkoutPlan', {plan: selectedPlan});
}
}