5db41169aa
refs https://github.com/TryGhost/Team/issues/1166 This is a new module which will eventually handle all payment related things. This allows the Offers module to focus exclusively on the Ghost concepts, and the Payments module will handle the association between Offer & Stripe Coupon, Tier & Stripe Product, Cadence & Stripe Price. This decoupling allows us to not have to consider the lack of Stripe data for an Offer, which is the case after a Stripe Disconnect. Instead all of the population/repopulation/lazy-creating can be handled here.
35 lines
440 B
Markdown
35 lines
440 B
Markdown
# Payments
|
|
|
|
## Install
|
|
|
|
`npm install @tryghost/payments --save`
|
|
|
|
or
|
|
|
|
`yarn add @tryghost/payments`
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
## Develop
|
|
|
|
This is a mono repository, managed with [lerna](https://lernajs.io/).
|
|
|
|
Follow the instructions for the top-level repo.
|
|
1. `git clone` this repo & `cd` into it as usual
|
|
2. Run `yarn` to install top-level dependencies.
|
|
|
|
|
|
## Run
|
|
|
|
- `yarn dev`
|
|
|
|
|
|
## Test
|
|
|
|
- `yarn lint` run just eslint
|
|
- `yarn test` run lint and tests
|
|
|
|
|