User checkout process
The API allows you to perform a checkout for a user, which needs to have multiple stages:
- Fetch prices for every item in the cart using
/api/v2/member/checkout/prices
- Perform payment for specified items in the checkout cart using
/api/v2/member/checkout
See this recipe for more detailed example
Payment methods
User can currently pay for the cart by two methods: membership or using saved payment method.
Different payment method types cannot be combined, you always have to use only one type.
Membership
To get a list of memberships compatible with current cart you need to call /api/v2/member/checkout/compatible-memberships
You can either use single subscription or combine multiple packages if you need. You cannot combine different membership types.
Saved payment method
To list saved payment methods of current user call https://momence.readme.io/reference/apiv2membersavedpaymentmethodscontroller_get
You can only use one saved payment method per one cart.
Updated 5 months ago