Updated 26 June 2023
Before we start the integration of the payment gateway. we need to know about the payment gateway and about the CCAvenue company. It is one of India’s oldest and premier online payment gateways. Which is established in the year 2001. CCAvenue is one of India’s largest direct debit engine with over 240 payment options to process payment transactions in real-time.
CCAvenue multilingual checkout page offered in 18 major Indian and International languages provides a wider global reach. It engages consumers who prefer content in their native languages resulting in an enhanced user experience and increased transaction success rates.
http://www.mediafire.com/file/h2979lwx9xln7fl/IOS_V10.1.1_Bitcode_August_2020.zip/file
1 |
#import <CCAvenueSDK/CCAvenuePaymentController.h> |
1 |
import CCAvenueSDK |
1 |
var paymentController: CCAvenuePaymentController? |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
extension OrderReview: CCAvenuePaymentControllerDelegate { @IBAction func continueClick(_ sender: UIButton) { self.initpayment() } func initpayment(){ self.paymentController = CCAvenuePaymentController.init(orderId: "orderId", merchantId: merchant_id(Int), accessCode: access_code(Int), custId: "customer_id", amount: "amount", currency: "currency", rsaKeyUrl: "rsa_key", redirectUrl: "redirect_url", cancelUrl: "cancel_url", showAddress: "true", billingName: “billingName", billingAddress: “.billingAddress", billingCity: “billingCity", billingState: “billingState", billingCountry: “billingCountry", billingTel: “billingTel", billingEmail: “email", deliveryName: “deliveryName", deliveryAddress: “deliveryAddress", deliveryCity: “deliveryCity", deliveryState: “deliveryState", deliveryCountry: “deliveryCountry", deliveryTel: “deliveryTel", promoCode: "", merchant_param1: "", merchant_param2: "", merchant_param3: "", merchant_param4: "", merchant_param5: "", useCCPromo: "N") self.paymentController?.delegate = self; self.present(paymentController!, animated: true, completion: nil); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
func getResponse(_ responseDict_: NSMutableDictionary!) { self.paymentController?.dismiss(animated: true, completion: nil) if "\(responseDict_!["order_status"] ?? "")" == "Failure"{ self.state = "fail" }else if "\(responseDict_!["order_status"] ?? "")" == "Success" { self.state = "complete" }else if "\(responseDict_!["order_status"] ?? "")" == "Aborted" { self.state = "pending" }else{ self.state = "fail" } print("Response in merchant app :- \(responseDict_)"); } |
I hope this blog helped you to integrate the CCAvenue payment gateway in your project for any query please leave a comment to us and for more blog please click here.
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
I Ieplmtemed CCAvenue Payment Getway in My project
i got crash app
Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]’