Foloosi
  • INTRODUCTION
  • FEATURES
  • Get Started
    • Create Api Credentials
    • Checkout Page Customization
  • Payment Methods
    • Popup Payment Method
    • Hosting Payment Method
    • Saved Card Payment Method
  • CLIENT SIDE INTEGRATIONS
    • Javascript Integration
      • Create Payment Token
      • Payment Widget Initialization
      • Payment Response Handling
      • Additional Setup
      • Sample Integrations
    • PHP Integration
      • Create Payment Token
      • Payment Widget Initialization
      • Payment Response Handling
      • Additional Setup
      • Sample integrations
    • React JS Integration
      • Create payment Token
      • Payment Widget Initialization
      • Payment Response Handling
      • Additional Setup
    • Angular JS Integration
      • Create payment Token
      • Payment Widget Initialization
      • Payment Response Handling
      • Additional Setup
  • ECOMMERCE INTEGRATIONS
    • WooCommerce
    • CS Cart
    • Ecwid
    • Opencart
    • Magento
    • Prestashop
  • MOBILE SDK INTEGRATIONS
    • Android SDK
      • Initiate Payment
      • Payment Response Handling
    • iOS SDK
      • Initiate Payment
      • Payment Response Handling
    • React Native SDK
      • Make Payment
    • Flutter SDK
      • Installation
      • Make Payment
      • Sample Dart Program
  • SUBSCRIPTIONS
    • Foloosi Subscription for WooCommerce
    • Api Subscription
      • Sample Integration
    • Subscription
  • WEBHOOKS
  • PARTNER PAYOUT
  • CARD DETAILS
    • Test Cards
Powered by GitBook
On this page
  • Implement Payment Listener
  • Foloosi Log
  • Sample Payment Reference.
  • Support
  • Developed by
  • License

Was this helpful?

  1. MOBILE SDK INTEGRATIONS
  2. iOS SDK

Payment Response Handling

PreviousInitiate PaymentNextReact Native SDK

Last updated 1 month ago

Was this helpful?

Implement Payment Listener

Set and Implement our payment listener to receive payment results. Use the code below to obtain the payment result.

extension ViewController: FoloosiDelegate{
    func onPaymentError(descriptionOfError: String, transactionId: String, responseCode: String) {
        // Failure Callback.
    }

    func onPaymentSuccess(transactionId: String, responseCode: String) {
         // Success Callback
    }
}

Foloosi Log

You can enable / disable the SDK logs by using the line of code below. It will be disabled by default.

FLog.setLogVisible(debug: true or false)

Sample Payment Reference.

Please check for sample payment with above steps.

NOTE

Supports 170 World Currencies.

Support

Developed by

Foloosi Technologies Pvt Ltd.

License

Copyrights (c) 2025 Foloosi

Visit for support requests or email [email protected].

this link
https://www.foloosi.com