Introduction to iOS SDK


The PhonePe Payment Gateway iOS SDK(v 5.4.0) helps you quickly integrate secure and reliable payment processing into your iOS app. It handles all the complex parts of the payment flow, so you can focus on delivering a smooth experience to your users.

The PhonePe iOS SDK supports multiple payment methods, including:

  • UPI
  • Cards
  • Net Banking

With the iOS SDK, you can deliver a seamless, app-native payment experience to your users.

This guide will walk you through everything, from setting up the SDK to initiating transactions and handling refunds.

Integration Flow:

Step 1: Trigger the payment process when a customer selects the payment option within your app.

Step 2: Call the Fetch Auth Token API from your backend to securely authenticate the session.

Step 3: PhonePe will return a unique Auth Token to your server.

Step 4: Pass this Auth Token to PhonePe’s Create Order API. You will receive an Order Token, which is required to initialize the SDK.

Step 5: Use the Order Token to initialize the PhonePe SDK and launch the transaction UI for the customer.

Step 6: Once the customer is redirected back to your app, verify the transaction via Webhooks and the Check Status API before displaying the final payment result to the user.

Is this article helpful?