Next, we can embed the SDK in your iOS app to store card details, authorize payments, and capture a transaction.

Add the SDK

The iOS SDK is available as a CocoaPods pod and can be set up as follows.

Podfile
use_frameworks!

target 'TARGET_NAME' do
    pod 'gr4vy-ios', '1.3.0'
end

Replace TARGET_NAME with your own build target. Please check GitHub for the latest version of our SDK.

Then, in the Podfile directory type the following command.

pod install

On M1 Macs please add arch -x86_64 to the command.

arch -x86_64 pod install