Commit Graph

390 Commits

Author SHA1 Message Date
Peter Zimon
d649605f22 Refined popup width 2020-07-22 17:15:33 +02:00
Peter Zimon
aaf37d046c Refined plan pricing section design 2020-07-22 17:11:14 +02:00
Rish
2de8c376f3 v0.8.12 2020-07-22 16:22:21 +05:30
Rish
2578856c8d Updated portal button icon handling
no issue

- Added default icon svgs for button icon
- Updated rendering for default button icon
2020-07-22 16:09:59 +05:30
Peter Zimon
0486f04c7d Added breakline in free plan description 2020-07-22 10:50:24 +02:00
Peter Zimon
31407ba6a3 Fixed plan detail spacings 2020-07-22 10:47:39 +02:00
Peter Zimon
933fbfb079 Refined checkmark size 2020-07-22 10:45:22 +02:00
Peter Zimon
f25d5b2e20 Fixed switch UI bugs
no refs.
- fixed switch basic styles
- applied brandcolor to switch ON style
- fixed account page layout bug
2020-07-22 10:28:12 +02:00
Peter Zimon
741a1d1942 Added checkmark styles to plan selector 2020-07-22 10:13:23 +02:00
Peter Zimon
b2bfca4d0b Aligned plan section to center 2020-07-22 10:00:13 +02:00
Rish
8c98bf753e v0.8.11 2020-07-22 13:11:25 +05:30
Peter Zimon
9969276d37 Plan selection refinements 2020-07-21 17:06:48 +02:00
Peter Zimon
4173a921ae Added basic plan selection styles
no refs.
2020-07-21 17:03:51 +02:00
Peter Zimon
29abe4688f Basic styles for magic link page 2020-07-21 16:03:35 +02:00
Peter Zimon
2094a0950a Basic styling for signin page
no refs.
2020-07-21 15:58:47 +02:00
Peter Zimon
263f00bdd2 Basic signup page styling
no refs.
- applied basic styling to signup page
2020-07-21 15:43:01 +02:00
Rish
b86ea31079 Removed extra commented code
no issue

- Removes commented out code
2020-07-21 17:05:21 +05:30
Rish
7b5ee1ec9d Fixed lint 2020-07-21 17:03:57 +05:30
Rish
0e30b63f62 Refactored app setup to more modular structure
no issue

- Adds new mode check util for dev, preview and test, cleaned up manual checks
- Extracts Pages setup to its own file allowing common use
- Extracts action handling to its own file for neater structure
- Breaks up main App.js into proper methods for data fetching across usecases
- Adds better handling for App context through state
- Fixed trigger button test
2020-07-21 16:43:13 +05:30
Peter Zimon
47e7b86637 Applied brandcolor to account icon 2020-07-21 11:45:19 +02:00
Peter Zimon
2449991847 Added icon to 'Back' button 2020-07-21 11:26:39 +02:00
Peter Zimon
e7459437cb Added brand color CSS variable
no refs.
- added brand color CSS variable to iframe styles so that it's possible to use on UI elements
2020-07-21 11:06:11 +02:00
Peter Zimon
94093a2041 Refined paid account styles 2020-07-21 10:40:39 +02:00
Peter Zimon
73ee017b12 Removed paddings in plans page
no refs.
2020-07-20 18:03:34 +02:00
Peter Zimon
9f01f70777 Applied basic styles to account profile
no refs.
2020-07-20 17:57:56 +02:00
Peter Zimon
45c6dd3b8b Updated paid account styles
no refs.
- added basic styling to paid account settings styles
2020-07-20 17:33:10 +02:00
Peter Zimon
e45663dcb0 Added free account home screen styles
no refs.
- updated inline styles to CSS classes for free account home screen
2020-07-20 16:21:14 +02:00
Peter Zimon
cfe6829538 Changed style namespace
no refs.
- changed style namespace from `ghp` to `gh-portal`
2020-07-20 16:05:27 +02:00
Peter Zimon
eb8ad7b493 Added account home CSS styles
no refs.
- added styles for free account home screen
2020-07-20 16:02:58 +02:00
Peter Zimon
81ea9427f2 Updated switch and button styles
no refs.
- applied namespace to switch and button styles
2020-07-20 15:34:48 +02:00
Peter Zimon
5021689e16 Cleaned up popup modal styles
no refs.
- moved a couple of styles that are inside the iframe to CSS classes
2020-07-20 15:32:00 +02:00
Peter Zimon
2b49f6d08a Distributed CSS in JS styles to components
no refs.
- moved switch and action button styles to their respective components to tidy up the style structure
2020-07-20 14:52:47 +02:00
Peter Zimon
d0b9ff40f3 Added global style for main action button
no refs.
2020-07-17 14:52:55 +02:00
Peter Zimon
a52afa8c2a Updated basic styles for Account home page
no refs.
- applied layout, typography, color basics
2020-07-17 14:36:56 +02:00
Rish
d8cd5d1860 v0.8.10 2020-07-16 12:48:06 +05:30
Rish
d240b85319 Fixed empty member for logged in state
no issue

- Fetching member for preview or dev mode was overwtiting member as null for prod
- Fixes by returning default member state for non preview/dev mode
2020-07-16 12:47:19 +05:30
Rish
4eec6f31ec Fixed tests
no issue

 - Fixed signup test with correct plan value
2020-07-16 12:11:01 +05:30
Rish
398d851e7b v0.8.9 2020-07-16 12:09:10 +05:30
Rish
3b8b2c3f2a Updated development mode to handle account pages
no issue

- Allows development mode to open account pages with dummy member for testing
2020-07-16 12:08:24 +05:30
Rish
9ccbef5db1 Fixed overflow for portal button
refs https://github.com/TryGhost/members.js/issues/66

- Portal button showed scrollbars in some OS/browsers combination
- Hides overflow for portal button as we don't show scroll for any case
2020-07-16 12:07:35 +05:30
Rish
322096db5a Fixed default plan selection for signup page
closes https://github.com/TryGhost/members.js/issues/68

Signup screen can have any combination of available plans out of 3 currently allowed - free, monthly, yearly. This fix

- Always sets a default plan on screen based on which plans are available
- Uses `Free` as default if all plans are available, falls back to first plan in list otherwise
2020-07-16 11:57:19 +05:30
Renovate Bot
792b698d87 Update dependency @testing-library/jest-dom to v5.11.1 2020-07-15 15:05:12 +00:00
Renovate Bot
629f910615 Update dependency @testing-library/react to v10.4.7 2020-07-15 14:05:01 +00:00
Renovate Bot
bb6de1c31d Update dependency @testing-library/react to v10.4.6 2020-07-13 19:04:57 +00:00
Rish
4c43a1bc9e Fixed member state for portal preview page
closes https://github.com/TryGhost/members.js/issues/67

- Portal preview state was incorrectly adding logged-in member state
- Updates member state to be used only for account pages
2020-07-13 17:48:34 +05:30
Rish
9da9c3a21e v0.8.8 2020-07-09 11:09:28 +05:30
Rish
e721d9242b Handled trailing slash for site url
no issue

- Site url might be added with trailing slash, which causes site apis to be called with double slash
- Removes trailing slash from siteUrl if present
2020-07-09 11:08:52 +05:30
Renovate Bot
db6e02b3fa Update dependency @testing-library/react to v10.4.5 2020-07-08 19:14:19 +00:00
Rish
797f784296 v0.8.7 2020-07-08 20:54:41 +05:30
Rish
a6ab7fd626 Fixed null checks for accent color
no issue

- Fixes null checks for accent color
2020-07-08 20:54:10 +05:30
Rish
4b28df8506 v0.8.6 2020-07-08 10:43:09 +05:30
Rish
01423f974b Fixed page path set for links
no issue

- Fixes incorrect page path set for different links
2020-07-08 10:42:28 +05:30
Rish
ad5d05c023 v0.8.5 2020-07-08 10:38:50 +05:30
Rish
9eb1df17d1 Fixed link page urls with extra slash
no issue

- Fixes extra slash in link values on Link page for popup states
2020-07-08 10:37:59 +05:30
Rish
9ac11c562e Added check for preview mode to allow mock pages
no issue

- By default, we have guards to allow pages based on logged in state
- For preview mode, we switch off this guard to allow signin/signup pages to open
2020-07-08 10:37:28 +05:30
Rish
df1952ba01 v0.8.4 2020-07-08 10:26:55 +05:30
Rish
2e0a3d87ad Updated readme
no issue

- Updated readme to reflect correct custom data attribute
2020-07-08 10:26:14 +05:30
Rish
c1eb4e6540 Updated custom data attribute name and value
no issue

- Adds guard to open right page based on member logged in state from data attribute
- Updated data attribute name to `data-portal` and values same as link handling
2020-07-08 10:25:57 +05:30
Rish
2ed7ebb03d Fixed path handling for direct page links
no issue

- Updates handling for direct links to open specific pages
- Added guard for member not logged in for account pages
2020-07-08 10:05:21 +05:30
Rish
439761e992 v0.8.3 2020-07-07 19:57:44 +05:30
Rish
14d92e1c52 Handled card info for complimentary plan
closes https://github.com/TryGhost/members.js/issues/52

- No card details are on file for complimentary plan, show Complimentary instead
2020-07-07 19:56:53 +05:30
renovate[bot]
6106219123 Lock file maintenance (#62)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-07 19:53:48 +05:30
Rishabh Garg
fb6a2c950f Added links page and look feel settings handling (#64)
no issue

- Handles new look feel settings for portal icon button
- Adds auto width calculation for portal button based on text
- Adds new link page for portal links and data attributes
- Added contrast color calculation for accent color complimentary text
- Added copy text utility for allowing copy to clipboard
2020-07-07 19:53:26 +05:30
Renovate Bot
c1f6545915 Update dependency @testing-library/react to v10.4.4 2020-07-06 01:05:38 +00:00
Rish
b776af6a7c v0.8.2 2020-07-01 15:36:49 +05:30
Rish
2e5ddfa05c Removed unused top level css
no issue

- CSS was added as part of App initialization and not used in project
- Top-level css leaks through on the page when script is added unlike the frame's css/inline-style
2020-07-01 15:36:13 +05:30
Rish
79666590e2 v0.8.1 2020-06-26 02:12:38 +05:30
Rishabh Garg
679ee80c81 Added setup to handle preview mode from URL (#60)
no issue

- Adds handling of preview URL used in Admin for showing popup state
- Updates popup state based on url hash changes
2020-06-26 02:11:57 +05:30
Renovate Bot
f6ee798a95 Update dependency @testing-library/jest-dom to v5.11.0 2020-06-25 17:16:18 +00:00
Renovate Bot
f623c8aa1c Update dependency @testing-library/react to v10.4.3 2020-06-25 05:01:13 +00:00
Renovate Bot
eef3726578 Update dependency @testing-library/react to v10.4.2 2020-06-24 20:33:46 +00:00
Rish
fb00813f2e v0.8.0 2020-06-25 00:25:19 +05:30
Renovate Bot
66b073feca Update dependency @testing-library/react to v10.4.1 2020-06-23 23:21:14 +00:00
Renovate Bot
0759eb52da Update dependency @testing-library/react to v10.4.0 2020-06-23 17:20:29 +00:00
Rish
7a9d7497fb Updated site url fetch from data attribute
closes https://github.com/TryGhost/members.js/issues/54

- Site url is added as data attribute on script tag load in Ghost head
- was previously fetched via meta tag which was inserted on site
2020-06-22 17:46:40 +05:30
Rish
aaa8fd3535 Updated new portal settings naming
no issue

- Previously, the settings used for customization were `show_beacon`, `show_signup_name` and `allowed_plans`
- These settings were renamed to `portal_button`, `portal_name` and `portal_plans` respectively
- Updates usage of settings to new names
2020-06-19 21:37:22 +05:30
Renovate Bot
affc000be5 Update dependency webpack-cli to v3.3.12 2020-06-18 13:22:40 +00:00
Rish
8361cfabc2 v0.7.0 2020-06-18 17:50:31 +05:30
Rish
6c8c77de5d Handled new modal settings for basic customization
no issue

- Uses `show_beacon` setting to show/hide the default beacon
- Uses `show_signup_name` setting to show/hide the signup name
- Uses `allowed_plans` to show/hide the plans
2020-06-18 17:16:05 +05:30
Rish
905bc30a90 Added dynamic height calculation for popup
no issue

- So far, we had to specify fixed height to iframe based on content of page, but this was not dynamic
- Calculates height of popup dynamically with refs and assigns to iframe to allow dynamic updates as content changes
- Allows configuration and different case handling for popup without worrying about proper height
2020-06-18 11:35:53 +05:30
Renovate Bot
20b637e404 Update dependency @testing-library/react to v10.3.0 2020-06-18 01:19:17 +00:00
Renovate Bot
6bb146abcc Update dependency @testing-library/jest-dom to v5.10.1 2020-06-15 01:21:06 +00:00
Rish
c0fa057533 v0.6.3 2020-06-12 18:53:06 +05:30
Rish
3a4c93b82d Fixed default page value
no issue

- Fixes Incorrect assignment of default page in case of missing data set
2020-06-12 18:52:05 +05:30
Rish
a873554be3 v0.6.2 2020-06-12 18:48:16 +05:30
Rish
3e06a71dc8 Fixed empty page from custom trigger button
no issue

- Custom trigger button with empty page value was not setting the default page
- Adds default page in case of no value
2020-06-12 18:47:29 +05:30
Rish
e376c60764 v0.6.1 2020-06-12 17:50:19 +05:30
Rish
432caae79c Updated site url to read from ghost:site meta tag on theme
closes https://github.com/TryGhost/members.js/issues/39

- Script needs correct ghost site url to initialize correct API endpoints for fetching site/members data
- `window.location.origin` won't work as correct ghost site url in all cases, specially for sites using subdirectory setup
- New meta tag `ghost:site` is inserted on themes with correct `siteUrl`, which is used to initialize api
2020-06-12 16:59:44 +05:30
Rish
8df822d317 Refactered App structure and naming
no issue

- Moved `ParentContainer.js` to redundant empty top level `App.js` to remove extra nesting and improved naming
- Renamed `ParentContext` to `AppContext` and exported as default
- Fixed imports in all the components and test-utils with new structure
- Passed `siteUrl` to api setup from main App to allow easier configuration
- Updated App tests
2020-06-12 14:19:08 +05:30
Renovate Bot
1fc8f86507 Update dependency @testing-library/user-event to v11.4.2 2020-06-11 17:19:51 +00:00
Renovate Bot
a83ae73578 Update dependency @testing-library/jest-dom to v5.10.0 2020-06-11 15:31:39 +00:00
Rish
0baa47da31 v0.6.0 2020-06-11 18:37:18 +05:30
Rish
9f6450b2fc Allowed multiple custom trigger buttons with start page
closes https://github.com/TryGhost/members.js/issues/45

- Allows multiple trigger buttons on the page with data attribute `data-members-trigger-button`
- Allows passing page value to custom trigger button to show the popup on specified page, like signup
- Removes event handlers on unmount
2020-06-11 15:38:37 +05:30
Renovate Bot
472af65f12 Update dependency @testing-library/user-event to v11.4.1 2020-06-10 20:17:38 +00:00
Rish
85889491cf Added check for stripe configuration in UI flows
closes https://github.com/TryGhost/members.js/issues/43

- Handle plans/payment flow based on new `isStripeConfigured` flag in members site data - Added in 82cf095600
- Hides plan update/subscribe/paid-signup flows if stripe is not setup
2020-06-10 21:18:00 +05:30
Rish
6623235bb9 Handled allowSelfSignup option for allowed plans
refs https://github.com/TryGhost/members.js/issues/43

- If the self signup flag is off in member settings, removes the free plan option from Signup flow
2020-06-10 19:52:38 +05:30
Rish
66479c1990 Added error handling for checkout/signup failure
closes https://github.com/TryGhost/members.js/issues/38

- Added error state to signup action button in case of action failure like checkout session rejection
- Checkout session rejection was previously incorrectly timing out and returning 200
2020-06-10 18:05:08 +05:30
Rish
e538f9b363 Removed error state action reset
no issue

- Don't reset the button/error state in case of a failure, similar behavior as Ghost Admin
2020-06-10 18:05:08 +05:30
Rish
9ab1ef3dc3 Added retry option to action button
no issue

- Allows updating action buttons to use error states to update background color
2020-06-10 18:05:08 +05:30
Renovate Bot
2955c7ee20 Update dependency @testing-library/user-event to v11.4.0 2020-06-10 05:20:49 +00:00
Renovate Bot
c3f8a529e8 Update dependency @testing-library/user-event to v11.3.2 2020-06-09 14:21:44 +00:00
Renovate Bot
4d7b8914be Update dependency @testing-library/user-event to v11.3.1 2020-06-08 19:39:44 +00:00
Rish
0ff2f9df9e Fixed lint in build script
no issue
2020-06-07 01:26:58 +05:30
Rish
aa228a8df2 Updated tests structure
no issue

- Use jsdom-fourteen to allow waitFor tests from testing lib - https://github.com/facebook/create-react-app/issues/7491#issuecomment-534832697
- Updated test-utils to pass context
- Added tests for account plan and profile using new test options
2020-06-07 01:26:41 +05:30
Rish
3c734af54e Disabled plan checkout without plan selection
no issue

- Disable plan checkout step if no plan is selected
2020-06-07 01:25:20 +05:30
Renovate Bot
70c2bd9a90 Update dependency @testing-library/react to v10 2020-06-07 01:06:49 +05:30
Renovate Bot
67c42b3277 Update dependency @testing-library/user-event to v11 2020-06-07 01:05:51 +05:30
Renovate Bot
08a809f156 Update dependency @testing-library/jest-dom to v5 2020-06-07 01:04:57 +05:30
Rish
0d50b68596 Updated publish note in readme
no issue

- Removes redundant manual version update line as `yarn ship` shows a prompt
2020-06-06 20:18:23 +05:30
Rish
4689061d49 Added custom trigger button note to readme
no issue

- Adds note on how custom trigger button works for theme devs
2020-06-06 20:10:26 +05:30
Rish
31f04851e5 Updated prop types for trigger button
refs https://github.com/TryGhost/members.js/issues/5

- Only place where we pass down props to check popup state
- Adds propType for popup state
2020-06-03 10:58:38 +05:30
Rish
4d94188d1c v0.5.1 2020-06-03 10:55:13 +05:30
Rish
e8a7f6aec9 Updated save state handling for button
closes https://github.com/TryGhost/members.js/issues/34

- Updates save state handling for button to show intermediary Saved state before resetting
- Updates labels based on action running state
2020-06-03 10:50:14 +05:30
Rish
9387cf2131 v0.5.0 2020-06-02 00:16:29 +05:30
Rish
535f9070bc Enabled data attribute handling for existing members script feature
no issue

- This was disabled before last release to not overlap with existing member's script in latest version
- Enabled again to handle data attributes in a theme same as existing script
2020-05-28 20:41:59 +05:30
Rishabh Garg
0db1874095 Added email change flow for logged-in member (#33)
refs https://github.com/TryGhost/members.js/issues/30
Depends on https://github.com/TryGhost/Members/pull/161

- Calls send magic link API with old email option when a member updates their email address
- Allows member to update their email address by clicking on magic link on new email address
2020-05-28 20:39:27 +05:30
Rish
bbeffb04be v0.4.1 2020-05-28 17:32:48 +05:30
Rish
565e9dfd73 Disabled data attribute handling
no issue

- Disables data attribute handling(existing members.js functionality) as it can attach handlers twice if loaded together with existing members.js
- Can be easily enabled once the new script is loaded from core
2020-05-28 17:32:07 +05:30
Rish
47b6415c93 Updated contact support button to disabled look
no issue

- No functionality is currently attached to contact support so greying out, will enable once its updated
2020-05-28 17:28:27 +05:30
Rish
f0d6320da9 Removed delete account button from profile page
no issue

- Cleanup: We currently don't have any functionality hooked to delete account button
2020-05-28 17:24:19 +05:30
Rish
503cb53f4f Removed email from update member action
no issue

- Removes email from update member action as it cannot be modified directly
2020-05-28 17:23:48 +05:30
Rish
b361754ea9 Cleaned action running states
no issue

- Adds running states for action buttons on plan and profile pages
2020-05-28 17:21:46 +05:30
Rish
a9a083f2f1 Cleanup
no issue

- Extract root div id so its easy to change it in one place in future
- Add stripe load method
- Extract all initial non-ui handling to setup method
2020-05-27 18:04:06 +05:30
Rish
9cf8e0e435 Added stripe load method
no issue

- Load Stripe script if not already loaded on page
- Many members.js features rely on Stripe script to be loaded on the page to allow checkout/billing updates etc.
2020-05-27 18:03:12 +05:30
Rish
fc75d9881d Initialized existing members.js data attribute handling
refs https://github.com/TryGhost/members.js/issues/32

- Inits data attribute handling from the copied over members.js file from core
- Uses `window.location.origin` as site url for api calls in data attribute handling
2020-05-27 17:32:41 +05:30
Rish
514e022520 Copied existing public members.js script from core
refs https://github.com/TryGhost/members.js/issues/32

- Copies over existing members.js script from core
- Handles members functionality in a theme using data-attributes assinged
- Only modification is tto use `siteUrl` value passed to the function for API calls
2020-05-27 17:32:41 +05:30
Rish
bb7200dabf Fixed lint warnings
no issue
2020-05-27 17:11:43 +05:30
Rish
5640137bd3 Renamed update plan action to update subscription
no issue

- Renames update plan action to update subscription as it can be also used to cancel current subscription
- Pass cancelAtPeriodEnd option to update subscription API call
2020-05-26 20:40:54 +05:30
Renovate Bot
838c440a5a Update dependency eslint-plugin-ghost to v1.5.0 2020-05-25 10:17:09 +00:00
Rish
25269953a2 v0.4.0 2020-05-22 15:47:14 +05:30
Rish
97319dee7c Redirected member to home after plan update
no issue

- Takes member to home page popup on plan update
- Fetches new member session data via API to show updated plan
2020-05-22 15:44:35 +05:30
Rish
dd2ad02e68 Refactored profile page for free/paid member
no issue

- Updates profile page for free/paid member to render newsletter based on context
- Disable editing email field till we have the full flow for it
2020-05-22 15:43:24 +05:30
Rish
7cc028ba0d Added default plan for paid member
no issue

- Selects member's current plan by default on plan selection page
2020-05-22 15:41:58 +05:30
Rish
11e1b84298 Refactored account home page to dynamically load for free/paid
no issue

- Updates style based on context
- Combines account home page for free/paid members to load based on member status
2020-05-22 15:41:27 +05:30
Rish
f94f16a90d Combined account home pages in single file
no issue

- Cleanup: Combines home page for both free and paid member in single file for cleaner split
2020-05-22 12:38:06 +05:30
Rish
d8072971b5 Updated newsletter subscription label
no issue

- Updates newsletter subscription label based on current state on profile page
2020-05-22 12:36:38 +05:30
Rish
1049955007 Removed env variable for default page
no issue

- Removes env variable which could be previously set for local development in favor of `process.env.NODE_ENV` check for development version
2020-05-22 12:35:33 +05:30
Rish
08a4611ee3 Fixed page switch message UI margin
no issue

- Adds margin for page switch message between signup/signin at bottom
2020-05-22 12:34:21 +05:30
Rish
9432e4f166 Fixed Switch element tests
no issue

- Updated attaching onToggle to correct element on switch test
2020-05-21 12:02:41 +05:30
Rish
ca0bdab60b Hooked newsletter subscription toggle to API
refs https://github.com/TryGhost/members.js/issues/20

- Allows paid/free member to update their newsletter subscription status
- Newsletter subscription status is immediately updated on toggle
2020-05-21 11:54:44 +05:30
Rish
a859da1aa4 Updated magic link api to send member name
refs https://github.com/TryGhost/members.js/issues/26

- Includes member name in the magic link creation API which can be later read from token and stored on signup.
2020-05-21 09:05:41 +05:30
Rish
680572f499 Added profile update action from profile page
refs https://github.com/TryGhost/members.js/issues/20

- Updates profile update action name in Profile Page
- Adds new action to update member info from profile page if member is logged in
2020-05-20 00:14:22 +05:30
Rish
197be15e63 Renamed plan -> planName for update subscription api call
refs https://github.com/TryGhost/members.js/issues/20

- API uses planName for update subscription api call
2020-05-20 00:14:22 +05:30
Rish
2b34ee5c28 Updated paid signup action of member to include name
refs https://github.com/TryGhost/members.js/issues/29

- Uses updated API endpoint for checkout to pass member name in stripe checkout session metadata
2020-05-20 00:14:21 +05:30
Rish
43106c037e Added api to update member's profile info
refs https://github.com/TryGhost/members.js/issues/20

- Uses new member update endpoint to update logged-in member's profile info
- Member can update their name, email and newsletter subscription status
2020-05-20 00:14:21 +05:30
Rish
f257a35dce Updated checkout plan api to include member name in metadata
refs https://github.com/TryGhost/members.js/issues/29

- Create stripe checkout session in Ghost now supports passing metadata for custom info like name
- This allows storing member name post-signup after payment through stripe checkout is completed
2020-05-20 00:14:21 +05:30
Rish
b865d002a9 Added update subscription API
refs https://github.com/TryGhost/members.js/issues/20

- Adds update subscription api for member
- API allows updating plan for a particular subscription for logged-in member
2020-05-20 00:14:21 +05:30
Renovate Bot
f59d8213f6 Update dependency eslint-plugin-ghost to v1.4.1 2020-05-11 10:15:34 +00:00
Rish
748f56ee47 Added update plan setup for paid members
refs https://github.com/TryGhost/members.js/issues/20

- Adds update plan action for paid members to allow switching plans
2020-05-08 23:00:32 +05:30
Rish
3f738b1088 Added edit billing flow to paid account home
refs https://github.com/TryGhost/members.js/issues/20

- Opens stripe checkout update session from paid account area for a member
- Allows paid member to update their stripe billing info
2020-05-08 18:33:36 +05:30