I've downloaded the PayUMoney iOS SDK from the PayUMoney website. I'm now unable to integrate the SDK with my swift project.
How to integrate PayUMoney iOS SDK in swift project
4.8k views Asked by Mahil Arasu At
1
There are 1 answers
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in SWIFT
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in PAYUMONEY
- PayUCheckout pro [PayuMoney] onError method called in android app
- MissingPluginException(No implementation found for method buildPayment Params on channel payumoney sdk) this is payumoney sdk problem
- Redirecting to payumoney in laravel using Curl
- How can I fix 'Task :app:processDebugMainManifest FAILED' error while using payu-non-seam-less-react package on Android?
- PayU intigration in Android studio in java
- PayUCheckoutPro Android SDK implementation issue
- When I build project in Android Studio it throws an error of com.payumoney.sdkui.ui.utils does not exist
- PayU api to make payment via card
- Android Gradle dependencies are not working in new update of Android Studio
- PayuMoney integration not working in flutter app
- Integrating PayU payments gateway
- How to call a function on PayUMoney Bolt Launch?
- Unable to find explicit activity class in PayUCheckoutPro Payumoney PaymentGateways Integration
- How to set Multiple Option of Payment In PayUMoney Payment Gateway in Android
- Could not resolve phonepe.intentsdk.android.release
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
This answer is taken from PayU documentation itself, i am answering here just because it took me hours to implement with their documentation.
Hi i can guide you with NON seamless integration. https://github.com/payu-intrepos/Documentations/wiki/8.-iOS-SDK-integration#nonseamless
In non seamless integration PayU is already providing UI and will handle the card type and all payment process and at the end you will be notified for the status of your transaction with reason if failed and all details.
Download the SDK from Here:https://github.com/payu-intrepos/iOS-SDK-Sample-App/archive/3.8.1.zip
From Sample code copy file from "BusinessLayer" folder.
So i hope you have all required files now we can go further with integration.
You are integrating PayU with swift, as there is no swift SDK is not present from PayU team we have to proceed with Briding to Objective-C . You can find about this here:How to call Objective-C code from Swift
Once header file is created and configured in build setting, import the following Headers of SDK
Now we are ready to use PayU SDK into our environment/project.
Create new instance of 3 main object used for payment 1)Payment parameters 2)Hash Values 2)Helperclass// to calculate hash value
paste this above your viewDidLoad()
Here is function i have created for further processing
There are some My custom function that will through error at your side you copy paste, i am mentioning them here. Do take care of them
1)loadVC("PUUIMainStoryBoard", strVCId: VC_IDENTIFIER_PAYMENT_OPTION) //Loadvc function i have created to load view controller, you have to change it as you call your view controller
2)runOnMainThread({ // This function is for running code on main thread.
I have used all test credentials provided by PayU team you can find more in their doc :https://www.payumoney.com/pdf/PayUMoney-Technical-Integration-Document.pdf
//With this line we are adding notification sent by payment gateway to notify us regarding the status of the payment process, lets cash the notification.
You will get the response in notify.object. You can find more sophisticated language and way at their document:https://github.com/payu-intrepos/Documentations/wiki/8.-iOS-SDK-integration.
Hope this answer may help you.