@monkish/vendure-paystack-plugin
v0.0.1
Published
Plugin to enable payments through [Paystack](https://paystack.com/).
Readme
Paystack Vendure Plugin
Plugin to enable payments through Paystack.
Installation
yarn add @monkish/vendure-paystack-pluginUsage
- You will need to create a Paystack account and get your secret key in the dashboard.
- Set the webhook URL in the Paystack dashboard to
https://my-server.com/paystack/webhook, wheremy-server.comis the host of your Vendure server. - Create a new PaymentMethod in the Admin UI, and select "Paystack payments" as the handler.
Be sure to select the 'Check whether Paystack supports the payment' eligibility checker when creating the payment method. Paystack only supports the
NGN,USD,GHS,ZARandKEScurrencies.
- Call the
createPaystackPaymentIntentmutation on checkout to initialize a transaction and return the access code for use with Paystack Popup on the storefront.
