3D Secure Payments


3D Secure Payments

📖
Contact your Primer representative to enable 3DS on your Primer account and grant access to the Primer 3DS libraries. Once your account is set up you should have access to the Primer 3DS library.

Integrate 3D Secure into your checkout

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:

12345678910
source 'https://github.com/CocoaPods/Specs.git'source 'https://github.com/primer-io/primer-podspecs.git' 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
    Clean, build and run your project
  2. 2
    Once PrimerSDK is initialized check the console logs whether Can import Primer3DS is logged.
  3. 3
    If not, (i.e. Failed to import Primer3DS got printed), choose "Manual Order" in your project’s scheme. See screenshots for details. instructions 4 instructions 5
  4. 4
    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.