Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 188.8.131.52 release ready!
Owner and Founder. Opencart
Hi guys, today we will learn about how to implement Razorpay Payment Gateway in an iOS application.
Before starting to code first we need to know what a payment gateway is
A payment gateway is a merchant service provided by an e-commerce application service provider that authorizes card or direct payments processing for e-businesses, online retailers, bricks, and clicks, or traditional brick and mortar.
Note: They have moved their SDK to Swift framework. Razorpay Payment Gateway framework only supports iOS version 10.0 and later. Public contracts have not been changed. They have ensured that everyone would not have to change anything in his code when he move from Objective-C library to our new Swift framework.
Thus, it’s enough for us now. Let’s start by following the instructions below.
1.) Download the SDK and unzip it.
2.) Open your project in XCode and go to file under Menu. Select Add files to “yourproject”.
3.) Select Razorpay.framework in the directory you just unzipped.
4.) Select the Copy items if needed check-box.
5.) Click Add.
6.) Navigate to Target settings > General and add the Razorpay.framework in both Embedded Binaries and Linked Frameworks and Libraries.
To initialize the Razorpay iOS Standard SDK, you need the following :
Add the following code to your ViewController or wherever you want to initialize payments:
You can handle success or error events when a payment is completed by implementing onPaymentSuccess and onPaymentError methods of the RazorpayPaymentCompletionProtocol.
So please follow the above step and and if you have any issue or suggestion you can leave your query/suggestion in the comment section I will try to solve that.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
The results provided were above our expectations both in deliverability timeline as well as operation. They are a top-notch company with many resources and a company we feel honoured to work with again!
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.