29 lines
549 B
Markdown
29 lines
549 B
Markdown
# module-payments
|
|
|
|
Need to add this to the account Model
|
|
|
|
@Field(() => AccountPaymentInfo, { nullable: true })
|
|
paymentInfo?: AccountPaymentInfo;
|
|
|
|
Need to add the corresponding resolvers
|
|
-- app
|
|
|
|
...ModulePaymentAppResolver
|
|
|
|
-- admin
|
|
|
|
Stripe Install
|
|
|
|
- Install the env in DB
|
|
|
|
Stripe config
|
|
|
|
Url to add in the stripe webhook
|
|
|
|
-- Custom domain (recommended)
|
|
https://xxx-api.example.com/payments/webhook
|
|
|
|
Once you have setup a webhook, you will received a signature key whsec_XXXX that you need to put as STRIPE_HOOK_SECRET in your env
|
|
|
|
|