0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Cleaned up checkoutPlan action

no issue

- Removed checkoutUrls as we use default value for now
This commit is contained in:
Rish 2020-05-01 20:55:20 +05:30
parent 7dd4282520
commit 767fbc1112

View file

@ -145,13 +145,9 @@ export default class ParentContainer extends React.Component {
page: 'magiclink'
});
} else if (action === 'checkoutPlan') {
const checkoutSuccessUrl = (new URL('/account/?stripe=billing-update-success', window.location.href)).href;
const checkoutCancelUrl = (new URL('/account/?stripe=billing-update-cancel', window.location.href)).href;
const {plan} = data;
await this.GhostApi.member.checkoutPlan({
plan,
checkoutSuccessUrl,
checkoutCancelUrl
plan
});
}
} catch (e) {