• France
status page
demonstrations
assistance
FAQContact support
Search
Categories
Tags
English
French
English
Homepage
Use cases
Create a payment
Create an installment payment
Create a multi-card (split) payment
Create a payment by Alias (Token)
Create a payment link
Create a recurring payment
Manage subscriptions
Manage your transactions (refund, cancel...)
Analyze your reports
API docs
Embedded Form
REST API
Hosted payment
Mobile payment
File exchange
Snippets
Payment methods
Plugins
Guides
Merchant Back Office
Functional guides

Initializing the SDK

It is necessary to initialize the SDK at the launch of your application in the didFinishLaunchingWithOptions method of your AppDelegate. This allows you to configure the SDK with your data.

  1. Import the framework import LyraPaymentSDK into your application
  2. Call the initialize method with the following parameters:
    Parameter Format Description
    publicKey string Fill in your public key (available in the Settings menu > Shop > REST API keys your Merchant Back Office)
    options [String: Any] Dictionary that allows you to configure the behavior of the SDK.
    The possible keys in this dictionary are:
    Keys Format Description Required
    apiServerName string

    Expected value: REST API server name (available in the Settings menu > Shop > REST API keys of your Merchant Back Office)

    Required
    applePayMerchantName string

    Expected value: MERCHANT_NAME

    Merchant name to be displayed on the Apple Pay modal in the "Pay" label

    Required
    cardScanningEnabled Bool

    Enables/Disables the card scan feature (see the iOS integration guide)

    Optional
    applePayMerchantId string Expected value:APPLE_MERCHANT_ID

    Refers to your Apple Pay Merchant ID.

    Required

    Example of a call

    <div class="doc-component-wrapper"> <doc-code-block> <div class="doc-code" data-languages="swift, objective_c"> <pre data-language="swift"> //Active Apple Pay functionality configurationOptions[Lyra.applePayMerchantId] = APPLE_MERCHANT_ID </pre> <pre data-language="objective_c"> //Active Apple Pay functionality [configurationOptions setValue:APPLE_MERCHANT_ID forKey:Lyra.applePayMerchantId]; </pre> </div> </doc-code-block> </div>

For more details on the examples according to the (swift, objective_c) calling method, consult iOS integration guide.

 Optionally, you can configure the text to be displayed as a summary in the payment request. All you need to do is send the text to be displayed as value of the applePaymentSummaryDescription key in the option configuration dictionary when calling the processPayment.
© 2025 {'|'} All rights reserved to Scellius
25.28-1.11