|
|
1 mesiac pred | |
|---|---|---|
| .. | ||
| e2e | 1 mesiac pred | |
| src | 1 mesiac pred | |
| .gitignore | 4 rokov pred | |
| README.md | 1 rok pred | |
| package.json | 2 mesiacov pred | |
| tsconfig.build.json | 4 rokov pred | |
| tsconfig.json | 4 rokov pred | |
For documentation, see docs.vendure.io/reference/core-plugins/payments-plugin/
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.
packages/payments-plugin/.env with content MOLLIE_APIKEY=your-test-apikeycd packages/payments-pluginnpm run dev-server:mollieMollie 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.
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.
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
cd packages/payments-plugin
yarn dev-server:stripe
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/