Ghost/ghost/members-api
Fabien "egg" O'Carroll 1f300fb781 🐛 Fixed checkout sessions when using Offers
closes https://github.com/TryGhost/Team/issues/2195

The issue here is two-fold, and specific to using Offers so was not
caught by any automated tests. First, we were incorrectly comparing
the tier.id to the offer.tier.id - this is because the Tier objects id
property is an instance of ObjectID rather than a string.

Secondly we were passing through the cadence parameter from the
request body, but when using Offers this is not including in the
request, so we must pull the data off of the Offer object instead and
pass that to the payments service.
2022-11-02 00:11:33 +07:00
..
lib 🐛 Fixed checkout sessions when using Offers 2022-11-02 00:11:33 +07:00
test 🐛 Fixed comped member creation via Admin API (#15714) 2022-10-28 01:59:05 +05:30
.eslintrc.js Removed trailing commas from .eslintrc.js 2021-07-14 12:04:46 +01:00
.gitignore Refactor members-api (#231) 2021-01-18 13:55:40 +00:00
index.js Fixed index.js require 2021-07-15 18:06:45 +01:00
package.json Added linking between member and subscription created events (#15693) 2022-10-27 11:44:19 +02:00