Closed a11rew closed 1 year ago
Can you please guide me through this issue? I am new to open source and would like to contribute.
Hi @agamswaroop619, welcome!
This would involve replacing all calls made with the current Paystack SDK in this file https://github.com/a11rew/medusa-payment-paystack/blob/main/packages/plugin/src/services/paystack-provider.js. It could be with another Paystack library or manually making the calls to the API. This wrapper maintained by the Paystack team would be a good choice https://github.com/PaystackOSS/paystack-node
You could use this demo repo https://github.com/a11rew/medusa-paystack-demo along with the linking instructions here to test your changes locally.
Happy to answer any other questions you have
Thanks @a11rew for such quick response!
Paystack account is currently not available for my country, I just wanted to ask if it was needed?
Ah that would be a blocker @agamswaroop619. A Paystack account is be needed to get setup locally and verify changes work as expected.
Sorry for troubling you, @a11rew. If anything else comes up that I can help please feel free to ask me! I will try my best to support in any way or form as I can!
Sure thing, definitely not a bother @agamswaroop619
We currently depend on version
^2.0.6
of thepaystack-api
package, it's used internally for making calls to the Paystack API.The package hasn't been updated in 2 years though and depends on a number of deprecated packages, triggering NPM deprecated package warnings when this plugin is installed.
We need to either replace this package with another maintained wrapper of the Paystack API or handle making the calls manually.