Skip to content

Releases: a11rew/medusa-payment-paystack

[email protected]

17 Nov 15:15
48e2945
Compare
Choose a tag to compare

Major Changes

  • 41f0cae: This version comes with support for Medusa version V2.

    Breaking changes:

    • The plugin now requires Medusa version V2.0.0 or higher.
    • How the plugin is configured has changed. The plugin is configured is Medusa as a PaymentProvider under the Payment module. The configuration is now done in the medusa-config.ts file. Refer to the "Configure the Paystack Plugin" section of the README for more information.
    • Webhook URLs now MUST be set in the format <your-medusa-backend-url>/hooks/payment/paystack. Eg. https://your-medusa-backend.com/hooks/payment/paystack. Note this is different from the previous <your-medusa-backend-url>/paystack/hooks format.

Patch Changes

  • 3864dad: fix: send amounts in subunits

  • 7e73061: Paystack transaction access_code's and authorization_url's are now returned as first class members of the transaction data object (on the same level as the paystackTxRef).

    In V2, users of the plugin are encouraged to use either the paystackTxAccessCode and paystackTxAuthorizationUrl to initiate the Paystack payment flow. Instead of the previous flow that required providing the paystackTxRef as well as the amount, email and currency code to continue the payment in the storefront.

    This is important because, instead of having to provide the same options (amount, email and currency code) to continue the payment in the storefront, which is error prone, users can now use the only one of the paystackTxAccessCode and paystackTxAuthorizationUrl to initiate the payment flow. This also makes the integration on the storefront side simpler and more flexible.

    The paystackTxRef is still returned for backwards compatibility.

    To use the new flows, users of the plugin can decide between the following options:

    1. Use the paystackTxAccessCode to "resume" the payment flow. Follow the Paystack documentation to implement the transaction resumption flow.
    2. Use the paystackTxAuthorizationUrl to redirect the customer to Paystack's hosted payment page. The Paystack hosted page can either be opened in a new tab, or a child window. After the customer completes the payment, they will be redirected back to the storefront while the payment is confirmed on your Medusa backend using webhooks.

[email protected]

07 Apr 20:41
acaa307
Compare
Choose a tag to compare

Minor Changes

  • 235282e: Adds support for Paystack webhooks

Patch Changes

  • ee5a111: Updates orderCapturer subscriber implementation to remove deprecation warning

[email protected]

19 Mar 16:51
938fe54
Compare
Choose a tag to compare

Patch Changes

  • ac65bde: Fixes initialization errors related to "msw/node" requires

[email protected]

19 Mar 07:53
9125ea0
Compare
Choose a tag to compare

Patch Changes

  • c77bb51: Adds support for automatically retrying network and 5xx errors in requests sent to Paystack.

[email protected]

15 Jan 09:57
c5415d6
Compare
Choose a tag to compare

Patch Changes

  • cc7407a: Removes hardcoded currency restrictions
    Improves logging of Paystack API errors

[email protected]

02 Nov 23:47
94d05bc
Compare
Choose a tag to compare

Minor Changes

  • 1524578: Payments are now automatically marked as captured. You do not have to go into the admin dashboard after every order to mark the payment as captured.

[email protected]

21 Oct 18:04
9939626
Compare
Choose a tag to compare

Patch Changes

  • a27dbfe: Use Axios for Paystack API requests to resolve header issues on some platforms.

    Credits: JaeKralj

[email protected]

07 Oct 12:52
ca7e8b7
Compare
Choose a tag to compare

Patch Changes

  • 47af03f: Upgrade dependencies
    Include README in published package

[email protected]

30 Aug 12:41
5297078
Compare
Choose a tag to compare

Patch Changes

  • 731da1d: Re-adds amount and currency checks

    Adds new debug mode for testing

[email protected]

27 Aug 10:10
5055547
Compare
Choose a tag to compare

Patch Changes

  • e8cf256: Removes outdated Paystack API wrapper package we were using prior fixing deprecated dependency warnings.

    Also changes how we generate references. Transactions are initialized with Paystack and the returned reference used instead of an arbitrary cuid.