See how we developed the Cybersource module with ERPNext

July 06, 2022

Tags: IT Staff Augmentation




At Rootstack, we always try to innovate in everything we do, as this allows us to advance in the technology industry and offer our clients better digital solutions for their businesses. We recently worked on a module in which we connect Cybersource with ERPNext, enhancing payment processing.


Let's start by talking about Cybersource first: it is a platform that allows you to process and receive payments from all over the world. "It is compatible with popular payment methods, including payments in store, online and with digital wallets," they explained on the website of this service.




The best part is that it offers companies tools to reduce fraud, helping them to accept more valid payment orders in all channels and from anywhere. Likewise, the Cybersource platform offers high security standards, so it always protects users' sensitive data, minimizing exposure to risk.


In the case of ERPNext, we are talking about one of the most powerful and efficient enterprise resource planning platforms in the industry. From this system, a company manager can manage absolutely all the processes, without having to jump between one platform and another.


This is how we developed the Cybersource module with ERPNext


Cybersource has an SDK; It has an API that allows requests to process payments with a subscription affiliated with the account, using credit cards or the different payment methods provided by Cybersource, such as PayPal.




Besides, it has a Python SDK -of various languages- but in this case we use Python because Frappe is a framework for developing ERPs, written in Python. It was a matter of installing the SDK, doing the implementation shown in the documentation.


The documentation is quite extensive and let's say that Cybersource has a lot of options and features that were not relevant. The challenge was to investigate which of the flows was the one that suited Rootstack and, once we identified the flow that suited us, the implementation was quite simple because it was simply using the Cybersource SDK.




This was within a Frappe module or application, where Frappe is the framework and ERPNext is an application. We made another application that is the integration with the payment gateway.


It is a Frappe module that provides the entire ERP ecosystem with the Cybersource payment gateway, developed by Rootstack.


It allows you to pay payment requests associated with sales invoices, using the traditional flow, which shows you a form. You have the product you are buying there, as if it were a traditional e-commerce.


Besides, some endpoints were adjusted to be used by the Rootnet system.


What is ERPNext?


On their official page, they define it as follows: “ERPNext is a full-featured business management solution that helps SMEs record all their business transactions in one system. With ERPNext, SMEs can make informed, fact-based and timely decisions to stay ahead of the competition. It serves as the backbone of a business adding strength, transparency and control to your growing company.”


Main features of ERPNext


Deliver a better service experience with an intuitive issue tracker and integrated knowledge base. Maintains and manages the detail of the assets, their movement, appraisal and depreciation.


  • ERPNext comes with complete content management with blogs, web pages and forms.
  • With your CRM, you gain and retain customers by optimizing the sales process.
  • Keep track of project assignments, time sheets, and issues.
  • Increase productivity and reduce costs by managing your sales and purchase cycles.
  • Manage the entire employee lifecycle from onboarding, payroll, attendance, and expense claims.


At Rootstack, we have +10 years developing digital solutions to streamline the work of companies, enhancing their productivity and results. Trust our experienced software engineers and developers to transform your business. Contact Us!


We recommend you on video