Hello, in the config.yml, I noticed that cybersource and paypal were explicitly hardcoded. Is there a possibility to use another payment platform (paystack specifically) which is convenient in Nigeria for checkout options.
Yes, it’s possible to use a custom payment solution, but you will need to develop a custom payment processor. To do so, you should draw inspiration from the existing processors: https://github.com/edx/ecommerce/tree/master/ecommerce/extensions/payment/processors
Beware! It’s not for the faint of heart.
Thanks @regis. My service provider seems to have something like this set up. How can I integrate it into tutor image, so that I can directly point to it from my config.yml [ECOMMERCE_PAYMENT_PROCESSORS]
Thanks
You will need to create a python package that includes your custom payment processor. Then you will need to install it in the ecommerce docker image by setting the ECOMMERCE_EXTRA_PIP_REQUIREMENTS
configuration parameter: https://github.com/overhangio/tutor-ecommerce/#configuration
Then, you will have to activate and configure it by modifying the ECOMMERCE_PAYMENT_PROCESSORS
, ECOMMERCE_ENABLED_PAYMENT_PROCESSORS
, ECOMMERCE_ENABLED_CLIENT_SIDE_PAYMENT_PROCESSORS
, ECOMMERCE_EXTRA_PAYMENT_PROCESSOR_CLASSES
configuration parameters.
Good luck!