Learn more about the sdk integration in your iOS app
pod 'CashfreePG', '2.2.4'
. Ensure you are using the latest version of the SDK. Install the package using pod install
.
To provide UPI payments on iOS you will also need to enable the following permissions in your app. Open the info.plist
file and add the below content.
subscription_id
and subscription_session_id
CFSubscriptionSession
object.CFSubscriptionPayment
object.subscription_session_id
) and subscription ID (subscription_id
) obtained from creation step. It also specifies the environment (sandbox or production).
CFSubscriptionPaymentBuilder
to create the payment object. This object accepts a CFSubscriptionSession
, like the one created in the previous step.
CFResponseDelegate
to handle payment responses and errors.
It can be initialized in viewDidLoad
by calling CFPaymentGatewayService.getInstance().setCallback(self)
or call it before calling startSubscription
.