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:
parent
7dd4282520
commit
767fbc1112
1 changed files with 1 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue