@payloadcms/plugin-stripe 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,7 +53,7 @@ export default config;
53
53
 
54
54
  ### Endpoints
55
55
 
56
- One core functionality of this plugin is to enable a two-way communication channel between Stripe and Payload. To do this, the following custom endpoints are automatically opened for you:
56
+ One core functionality of this plugin is to enable a two-way communication channel between Stripe and Payload. To do this, the following custom endpoints are automatically opened for you.
57
57
 
58
58
  >NOTE: the `/api` part of these routes may be different based on the settings defined in your Payload config.
59
59
 
@@ -84,7 +84,7 @@ One core functionality of this plugin is to enable a two-way communication chann
84
84
 
85
85
  ### Webhooks
86
86
 
87
- This plugin also allows for a two-way data sync from Stripe to Payload using [Stripe webhooks](https://stripe.com/docs/webhooks). Webhooks listen for events on your Stripe account so you can trigger reactions to them. To enable webhooks:
87
+ [Stripe webhooks](https://stripe.com/docs/webhooks) are used to sync from Stripe to Payload. Webhooks listen for events on your Stripe account so you can trigger reactions to them. To enable webhooks:
88
88
 
89
89
  1. Login and [create a new webhook](https://dashboard.stripe.com/test/webhooks/create) from the Stripe dashboard
90
90
  1. Paste `/api/stripe/webhooks` as the "Webhook Endpoint URL"
@@ -156,7 +156,7 @@ import {
156
156
 
157
157
  ### Development
158
158
 
159
- This plugin can be developed locally using any Stripe account that you have access to. Then:
159
+ For development purposes, there is a full working example of how this plugin might be used in the [demo](./demo) of this repo. This demo can be developed locally using any Stripe account, you just need a working API key. Then:
160
160
 
161
161
  ```bash
162
162
  git clone git@github.com:payloadcms/plugin-stripe.git \
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Config } from 'payload/config';
2
2
  import { StripeConfig } from './types';
3
+ export { stripeProxy } from './utilities/stripeProxy';
3
4
  declare const stripe: (stripeConfig: StripeConfig) => (config: Config) => Config;
4
5
  export default stripe;
package/dist/index.js CHANGED
@@ -20,8 +20,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
20
20
  return to.concat(ar || Array.prototype.slice.call(from));
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.stripeProxy = void 0;
23
24
  var rest_1 = require("./routes/rest");
24
25
  var webhooks_1 = require("./routes/webhooks");
26
+ var stripeProxy_1 = require("./utilities/stripeProxy");
27
+ Object.defineProperty(exports, "stripeProxy", { enumerable: true, get: function () { return stripeProxy_1.stripeProxy; } });
25
28
  var stripe = function (stripeConfig) { return function (config) {
26
29
  return (__assign(__assign({}, config), { endpoints: __spreadArray(__spreadArray([], (config === null || config === void 0 ? void 0 : config.endpoints) || [], true), [
27
30
  {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,sCAA2C;AAC3C,8CAAmD;AAGnD,IAAM,MAAM,GAAG,UAAC,YAA0B,IAAK,OAAA,UAAC,MAAc;IAC5D,OAAO,uBACF,MAAM,KACT,SAAS,kCACJ,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,KAAI,EAAE;YAC1B;gBACE,IAAI,EAAE,kBAAkB;gBACxB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,UAAC,GAAG,EAAE,GAAG,EAAE,IAAI;oBACtB,IAAA,yBAAc,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,CAAC,CAAA;gBAC9C,CAAC;aACF;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,UAAC,GAAG,EAAE,GAAG,EAAE,IAAI;oBACtB,IAAA,iBAAU,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,CAAC,CAAA;gBAC1C,CAAC;aACF;qBAEH,CAAA;AACJ,CAAC,EArB8C,CAqB9C,CAAC;AAEF,kBAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,sCAA2C;AAC3C,8CAAmD;AAGnD,uDAAsD;AAA7C,0GAAA,WAAW,OAAA;AAEpB,IAAM,MAAM,GAAG,UAAC,YAA0B,IAAK,OAAA,UAAC,MAAc;IAC5D,OAAO,uBACF,MAAM,KACT,SAAS,kCACJ,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,KAAI,EAAE;YAC1B;gBACE,IAAI,EAAE,kBAAkB;gBACxB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,UAAC,GAAG,EAAE,GAAG,EAAE,IAAI;oBACtB,IAAA,yBAAc,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,CAAC,CAAA;gBAC9C,CAAC;aACF;YACD;gBACE,IAAI,EAAE,cAAc;gBACpB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,UAAC,GAAG,EAAE,GAAG,EAAE,IAAI;oBACtB,IAAA,iBAAU,EAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,CAAC,CAAA;gBAC1C,CAAC;aACF;qBAEH,CAAA;AACJ,CAAC,EArB8C,CAqB9C,CAAC;AAEF,kBAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/plugin-stripe",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "homepage:": "https://payloadcms.com",
5
5
  "repository": "git@github.com:payloadcms/plugin-stripe.git",
6
6
  "description": "Stripe plugin for Payload CMS",
@@ -16,7 +16,10 @@
16
16
  "cms",
17
17
  "plugin",
18
18
  "typescript",
19
- "payments"
19
+ "payments",
20
+ "saas",
21
+ "subscriptions",
22
+ "licensing"
20
23
  ],
21
24
  "author": "dev@payloadcms.com",
22
25
  "license": "MIT",