@vendure/payments-plugin 2.0.0-beta.1 → 2.0.0-beta.2

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.
Files changed (37) hide show
  1. package/README.md +20 -0
  2. package/package/mollie/graphql/generated-shop-types.d.ts +1032 -1158
  3. package/package/mollie/graphql/generated-shop-types.js +308 -323
  4. package/package/mollie/graphql/generated-shop-types.js.map +1 -1
  5. package/package/mollie/mollie-shop-schema.js +1 -0
  6. package/package/mollie/mollie-shop-schema.js.map +1 -1
  7. package/package/mollie/mollie.controller.d.ts +2 -1
  8. package/package/mollie/mollie.controller.js +9 -7
  9. package/package/mollie/mollie.controller.js.map +1 -1
  10. package/package/mollie/mollie.handler.d.ts +7 -5
  11. package/package/mollie/mollie.handler.js +10 -8
  12. package/package/mollie/mollie.handler.js.map +1 -1
  13. package/package/mollie/mollie.plugin.d.ts +29 -4
  14. package/package/mollie/mollie.plugin.js +18 -4
  15. package/package/mollie/mollie.plugin.js.map +1 -1
  16. package/package/mollie/mollie.service.d.ts +4 -6
  17. package/package/mollie/mollie.service.js +36 -27
  18. package/package/mollie/mollie.service.js.map +1 -1
  19. package/package/stripe/stripe-client.d.ts +9 -0
  20. package/package/stripe/stripe-client.js +21 -0
  21. package/package/stripe/stripe-client.js.map +1 -0
  22. package/package/stripe/stripe.controller.js +15 -14
  23. package/package/stripe/stripe.controller.js.map +1 -1
  24. package/package/stripe/stripe.handler.d.ts +27 -2
  25. package/package/stripe/stripe.handler.js +53 -24
  26. package/package/stripe/stripe.handler.js.map +1 -1
  27. package/package/stripe/stripe.plugin.d.ts +1 -2
  28. package/package/stripe/stripe.plugin.js +5 -6
  29. package/package/stripe/stripe.plugin.js.map +1 -1
  30. package/package/stripe/stripe.resolver.d.ts +1 -1
  31. package/package/stripe/stripe.resolver.js +7 -5
  32. package/package/stripe/stripe.resolver.js.map +1 -1
  33. package/package/stripe/stripe.service.d.ts +12 -6
  34. package/package/stripe/stripe.service.js +59 -31
  35. package/package/stripe/stripe.service.js.map +1 -1
  36. package/package/stripe/types.d.ts +0 -10
  37. package/package.json +7 -6
package/README.md CHANGED
@@ -17,3 +17,23 @@ will create an order, set Mollie as payment method, and create a payment intent
17
17
  6. Watch the logs for `Mollie payment link` and click the link to finalize the test payment.
18
18
 
19
19
  You can change the order flow, payment methods and more in the file `e2e/mollie-dev-server`, and restart the devserver.
20
+
21
+ ### Stripe local development
22
+
23
+ For testing out changes to the Stripe plugin locally, with a real Stripe account, follow the steps below. These steps
24
+ will create an order, set Stripe as payment method, and create a payment secret.
25
+
26
+ 1. Get a test api key from your Stripe
27
+ dashboard: https://dashboard.stripe.com/test/apikeys
28
+ 2. Use Ngrok or Localtunnel to make your localhost publicly available and create a webhook as described here: https://www.vendure.io/docs/typescript-api/payments-plugin/stripe-plugin/
29
+ 3. Create the file `packages/payments-plugin/.env` with these contents:
30
+ ```sh
31
+ STRIPE_APIKEY=sk_test_xxxx
32
+ STRIPE_WEBHOOK_SECRET=webhook-secret
33
+ STRIPE_PUBLISHABLE_KEY=pk_test_xxxx
34
+ ```
35
+ 1. `cd packages/payments-plugin`
36
+ 2. `yarn dev-server:stripe`
37
+ 3. Watch the logs for the link or go to `http://localhost:3050/checkout` to test the checkout.
38
+
39
+ After checkout completion you can see your payment in https://dashboard.stripe.com/test/payments/