iOS Apple Pay Support

Lets get Apple Pay support setup for your iOS Lucra SDK integration

Enabling Apple Pay support through the iOS Lucra SDK requires additional setup through the Apple Developer portal

See more details

A. Register Merchant Identifier

  1. Navigate to developer.apple.com, click Identifiers and click the + button to register a new identifier.

  2. Select the Merchant IDs radio button.

  1. Enter the merchant ID, provided by Lucra in the Identifier field. The Description field can have any label of your choosing. Click Continue , confirm that the merchant ID was entered correctly and then click Register

B. Create Payment Processing Certificate

  1. Navigate to developer.apple.com, click Certificates and click the + button to create a new certificate.

  2. Select the Apple Pay Payment Processing Certificate radio button.

  1. Click Continue and select the merchant ID that was registered in step A.

  1. Upload the Certificate Signing request that was provided by Lucra.

  1. Verify that the certificate details are correct and press Save.

C. Share the Certificate with Lucra

After generating the Apple Pay Payment Processing Certificate, you must send it to Lucra to complete the integration.

  1. Send the certificate that you downloaded in Step B to Lucra's implementation team.

  2. Lucra will provide confirmation once the certificate has been successfully uploaded into their system.

  3. Wait for Lucra to confirm that setup is complete before proceeding with testing.

It is essential to verify with Lucra that all configurations are finalized before running any Apple Pay transactions.

D. Add the Apple Pay Capability in Xcode

The following is an excerpt from Apple's Documentationarrow-up-right

  1. Open your project with Xcode. In the Project navigator, select the project.

  2. Choose the target for the app from either the Project/Targets pop-up menu or in the Targets section of the outline view.

  3. Click the Signing & Capabilities tab in the project editor.

  4. In the toolbar, click the Library button (+) to open the Capabilities library and select the Apple Pay capability.

  5. Within the Apple Pay capability, click the refresh button to synchronize your merchant identifiers from the Apple Developer site.

  6. Select the merchant identifier to use with this app.

E. Assign Merchant Identifier to Bundle Identifier

  1. Navigate to developer.apple.com, click Certificates and click Identifiers.

  2. Click the relevant bundle identifier, for the project where Apple Pay will be installed.

  3. Click Edit next to the Apple Pay Capability (screenshot below).

  1. Assign the Merchant Identifier to your bundle ID by checking the box next to the Lucra Merchant Identifier (screenshot below).

  2. Click Continue.

F. Pass the Merchant ID into the SDK

The LucraClient object takes an optional parameter of merchantID. Pass in the merchantID that was registered in step A, as shown below.

G. Testing Apple Pay

In order to test Apple Pay without using real credit cards, a sandbox environment must be setup according to Apple's instructions.

Apple's Documentation arrow-up-rightoutlines this process in detail, and a brief summary of this procedure can be found below.

  1. Create a Sandbox Tester Account

  2. Login to the Sandbox Tester Account on a real device

Last updated