Integrate Primer’s 3DS framework into your project

You should have access to the primer-3ds-sdk-ios repo. If you do not have access, contact your Primer representative or reach out to us at [support@primer.io](support@primer.io)

With Cocoapods

  • Add Primer’s private specs repo at the top of your podfile
  • Add the Primer3DS pod

Your podfile should look like this:

1234567
use_frameworks! target 'PrimerSDK_Example' do  pod 'PrimerSDK'  pod 'Primer3DS'    // ...end
swift
copy

With Swift Package Manager

Ensure that the 3DS framework is imported correctly

  1. 1
  2. Clean, build and run your project
  3. 2
  4. Once PrimerSDK is initialized check the console logs whether Can import Primer3DS is logged.
  5. 3
  6. If not, (i.e. Failed to import Primer3DS got printed), choose "Manual Order" in your project’s scheme. See screenshots for details.
  7. 4
  8. If you want to perform 3DS when vaulting cards you should set is3DSOnVaultingEnabled in the PrimerSettings object to true.
🎉
That’s it! Check the 3DS testing section below to understand how to perform 3DS payments in your sandbox environment.