Paystack payment integration for Frappe and ERPNext

Finally Paystack payment integration for erpnext frappe

Working perfectly in shopping cart

See the demonstration clip below

Please tell me what you think. Thank you.

4 Likes

Thank you for this.

Link below to the ERPNExt Paystack Integration and installation instructions

1 Like

Nice! If it’s active and maintained, we would love to have it publish it on Frappe Marketplace @Huawei_Hackace

1 Like

It is active and currently maintained.

Installed the app, installed successfully , however I cannot see the app in ERPNext or search for it, any ideas why I cannot see the app?

ERPNext - V13.10.2

It’s not yet merged in ERPNext core. It’s ideal as a separate app. @Huawei_Hackace if interested, can publish on our marketplace.

This app, I believe is already open source? If you have FC site, you should be able to install this app on FC site. Here is the help already.

Thanks Umair , yes the app is open source, praying it stays that way :wink:
Installed it on a Self-Hosted Test Site, couldn’t see the app in ERPNext after the install.
Could be the command I used to install the app to my site, will revisit this later today.

Would be good to push it into core … but as a separate app should be good as well.

Will publish it @umair

1 Like

Before to migrate, search for paystack

Just a quick update, can see the app now in my instance.
Will continue testing, thanks

I meant after install run migration. You can search for paystack using awesome bar

@umair @msalim79 @tobsowo
The paystack integration has been updated.
Currently has feature to whitelist payment payload ip address to check if data is counterfeit.

3 Likes

Thanks Buddy :pray:

Thank you.

THIS IS THE INSTALL STEPS IN BASH HISTORY

45 bench get-app --branch=master GitHub - mymi14s/frappe_paystack
46 ls sites/
47 cat sites/currentsite.txt
48 bench --site site1.local install-app frappe_paystack
49 bench build --app frappe_paystack
50 bench migrate
51 bench restart

1 Like

any luck. I’m getting same error

i’m getting server error. how do i fix it?
Traceback (most recent call last):
File “apps/frappe/frappe/integrations/utils.py”, line 70, in get_payment_gateway_controller
return frappe.get_doc(“{0} Settings”.format(payment_gateway))
File “apps/frappe/frappe/init.py”, line 886, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 75, in get_doc
return controller(*args, **kwargs)
File “apps/frappe/frappe/model/document.py”, line 113, in init
self.load_from_db()
File “apps/frappe/frappe/model/document.py”, line 156, in load_from_db
frappe.throw((“{0} {1} not found”).format((self.doctype), self.name), frappe.DoesNotExistError)
File “apps/frappe/frappe/init.py”, line 439, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File “apps/frappe/frappe/init.py”, line 418, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 372, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.DoesNotExistError: Paystack Settings Paystack Settings not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 68, in application
response = frappe.api.handle()
File “apps/frappe/frappe/api.py”, line 55, in handle
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 31, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 67, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1208, in call
return fn(*args, **newargs)
File “apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py”, line 386, in make_payment_request
frappe.local.response[“location”] = pr.get_payment_url()
File “apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py”, line 164, in get_payment_url
controller = get_payment_gateway_controller(self.payment_gateway)
File “apps/frappe/frappe/integrations/utils.py”, line 72, in get_payment_gateway_controller
frappe.throw(_(“{0} Settings not found”).format(payment_gateway))
File “apps/frappe/frappe/init.py”, line 439, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’, is_minimizable=is_minimizable, wide=wide, as_list=as_list)
File “apps/frappe/frappe/init.py”, line 418, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 372, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Paystack Settings not found

No my brother, I failed miserably and i gave up.

I even tried to contact the developer or contributor and there is no response from him @Huawei_Hackace.

For those having issue with frappe_paystack Paystack not found, issue resolved, it was as a result on changes in ERPNEXT. You can update the app.

delete your previous Payment Gateway, Payment Gateway Account and Paystack Setting Data, add new paystack setting, set as default in gateway account and select in ecommerce setting. if a video is required for clearer explanation, please let me know. I hope the upgrade the app to using VueJS if request is made on it.