Release notes
Added
- Saved cards for renewals (
IStoredCredentialPlugin, capabilitystoredCredentials). The customer of a client is found or created by email; a payment the host asks to keep the card of is marked in the transaction metadata and, once paid, reports the card as the saved method when Paystack recorded the payment for the same customer and the authorization is reusable and unexpired; saved cards are listed live from the customer, one is made the default (kept in the plugin store), removed (deactivated, only when it is the customer's own) and charged without the payer withPOST /transaction/charge_authorization. A charge uses a reference made from the host idempotency key and reads it first, so a retry never charges twice;FindChargeAsyncanswers by the same reference. A standalone save is not possible at Paystack and is not supported. channelssetting: the checkout channels to offer, sent for each payment only when they work in the currency of the payment.split_codeandsubaccountsettings: share every payment, and every charge of a saved card, with a split or a subaccount. Both set, or a malformed code, refuses the payment.all_currenciessetting and multi-currency support fromHostpanel.Sdk3.19.0: with it on,AcceptsCurrencyaccepts GHS, KES, NGN, USD and ZAR and the payment and the charge use the currency of the invoice; a paid status is trusted in any accepted currency.IPaymentReturnPlugin(capabilitypaymentReturn): thereferenceandtrxrefof the return address are checked against the payment, and a return that names another transaction is not read.IPaymentRefundStatePlugin: a refund Paystack has queued is reported as pending and read again withGET /refund/{id}until it is processed, failed or reversed. A reversed refund moved no money, so a retry makes a new one.- The webhook also acts on signed
refund.*events, which ask the host to read the order named bydata.transaction_reference.
Changed
- Built on
Hostpanel.Sdk3.19.0 andminHostVersionis 0.12.0. - The README says which Paystack behaviours were checked against the Paystack OpenAPI description and which are still to confirm, and why the
modesetting stays.
Removed
- The
payer_emailsetting. A payment whose payer has no address on file is now refused before any call instead of being recorded under one shared customer, which would have mixed payments and, with saved cards, cards. The host passes the payer's own address.
Install this version
- 1
Open the plugin list in your Hostpanel admin.
- 2
Install the plugin with the id "paystack" and choose version 1.4.0.
- 3
Hostpanel downloads this signed package from the registry and checks the signature and the SDK version before it loads.