Housein Abo Shaar 0a8e5cbdb4 refactor: Update e2e tests to use gql.tada features (#3974) 1 miesiąc temu
..
e2e 0a8e5cbdb4 refactor: Update e2e tests to use gql.tada features (#3974) 1 miesiąc temu
src 0a8e5cbdb4 refactor: Update e2e tests to use gql.tada features (#3974) 1 miesiąc temu
.gitignore 42c0be4b49 docs(payments-plugin): Add inline documentation for Mollie plugin 4 lat temu
README.md 9a7b35259d chore: Move from Yarn v1.x to npm 1 rok temu
package.json 534e600353 chore: Publish v3.5.0 2 miesięcy temu
tsconfig.build.json 42c0be4b49 docs(payments-plugin): Add inline documentation for Mollie plugin 4 lat temu
tsconfig.json 42c0be4b49 docs(payments-plugin): Add inline documentation for Mollie plugin 4 lat temu

README.md

Payments plugin

For documentation, see docs.vendure.io/reference/core-plugins/payments-plugin/

Development

Mollie local development

For testing out changes to the Mollie plugin locally, with a real Mollie account, follow the steps below. These steps will create an order, set Mollie as payment method, and create a payment intent link to the Mollie platform.

  1. Get a test api key from your Mollie dashboard: https://help.mollie.com/hc/en-us/articles/115000328205-Where-can-I-find-the-API-key-
  2. Create the file packages/payments-plugin/.env with content MOLLIE_APIKEY=your-test-apikey
  3. cd packages/payments-plugin
  4. npm run dev-server:mollie
  5. Watch the logs for Mollie payment link and click the link to finalize the test payment.

You can change the order flow, payment methods and more in the file e2e/mollie-dev-server, and restart the devserver.

Stripe local development

For testing out changes to the Stripe plugin locally, with a real Stripe account, follow the steps below. These steps will create an order, set Stripe as payment method, and create a payment secret.

  1. Get a test api key from your Stripe dashboard: https://dashboard.stripe.com/test/apikeys
  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/
  3. Create the file packages/payments-plugin/.env with these contents:

    STRIPE_APIKEY=sk_test_xxxx
    STRIPE_WEBHOOK_SECRET=webhook-secret
    STRIPE_PUBLISHABLE_KEY=pk_test_xxxx
    
  4. cd packages/payments-plugin

  5. yarn dev-server:stripe

  6. Watch the logs for the link or go to http://localhost:3050/checkout to test the checkout.

After checkout completion you can see your payment in https://dashboard.stripe.com/test/payments/