1. Mobile
EspaΓ±ol
  • EspaΓ±ol
  • English
  • Bienvenida
    • Home Page
  • PerΓΊ πŸ‡΅πŸ‡ͺ
    • Kushki Developer Portal πŸš€
    • PerΓΊ πŸ‡΅πŸ‡ͺ
    • RaΓ­z
      • Libraries & SDKs (Online Payments)
        • Release notes
        • Mobile
          • Kushki Android
          • Kushki iOS ο£Ώ
          • Kushki iOS ARM Setup
        • Web
          • Kushki.js 🌐
          • kushki.js-hosted-fields
            • kushki.js Hosted Fields
            • GuΓ­a de migraciΓ³n a Kushki.js 2.0
            • Antifraud
              • Interfaces
                • SecureInitRequest
                • SecureInitResponse
                • SiftScienceObject
              • Methods
                • requestInitAntiFraud
                • requestSecureInit
                • requestValidate3DS
            • Card
              • CarApplePay interface
                • ICardApplePay Interface
              • Card-Interface
                • ICard Interface
                • ICardSubscriptions Interface
              • Errors
                • Error list
              • Interfaces
                • Amount
                • ApplePayGetTokenOptions Interface
                • ApplePayOptions Interface
                • ApplePayPaymentContact
                • AppleTokenResponse
                • BrandByMerchantResponse Interface
                • CardFieldValues
                • CardInfo
                • CardOptions
                • CardTokenResponse
                • DeferredByBinOptionsResponse
                • DeferredInputValues
                • DeferredValuesResponse
                • DeviceTokenRequest
                • Field
                • FieldInstance
                • Fields
                • FieldValidity
                • FormValidity
                • MasterCardBrandingRequest
                • SecureDeviceTokenOptions
                • Styles
                • TokenResponse
                • VisaBrandingRequest
              • Methods
                • initApplePayButton
                • initCardToken
                • initSecureDeviceToken
                • requestBrandsByMerchant method
                • requestDeviceToken method
                • requestInitCardBrandingAnimation
              • Types
                • CssProperties
                • Currency
                • FieldTypeEnum
            • Card Payouts
              • Card Payouts Interface
                • ICardPayouts
              • Enumerations
                • Enumeration `InputModelEnum`
              • Errors
                • Errors
              • Interfaces
                • CardPayoutOptions
                • CardPayoutSubscriptionTokenResponse
                • CardPayoutUniqueTokenResponse
                • Field
                • Fields
                • FieldValidity
                • Interface FormValidity
                • Interface `Styles`
              • Methods
                • initCardPayoutToken
              • Type Aliases
                • CardPayoutTokenResponse
                • InputTypeEnum
              • Types
                • CssProperties
            • Kushki
              • Methods
                • init function
                • requestBankList function
                • requestCommissionConfiguration function
              • Classes
                • KushkiError
              • Interfaces
                • CommissionConfigurationRequest
                • IKushki
                • KushkiOptions
    • Schemas
      • API Raw Card Present
        • metadata
        • extra_taxes
        • card
        • sub_merchant
        • pos_details
        • enc_tlv
        • deferred
        • contact_details
        • card_details
        • amount
      • Chargebacks
      • Commissions
      • Gateway Status
      • ChargebackListResponse
      • StatusComponent
      • currency
      • one-and-two-step-payment
      • webhooksChargeback
      • ChargebackItem
      • webhooks
      • networkToken
      • webhooksItem
      • transactionType
      • ErrorResponse400
      • threeDomainSecure
      • ErrorResponse401
      • product
      • ErrorResponse403
      • payment_submethod
      • ErrorResponse500
      • payment_method
      • paymentMethod
      • orderDetails
      • Shipping Address
      • headers
      • extraTaxes
      • documentType
      • currency
      • currency-cash-in
      • currency-CL
      • binInfo
      • UnexpectedErrorResponse
      • citMit
      • SubscriptionUpdate
      • messageFields
      • network
      • SubscriptionAdjustmentRequest
      • Subscription
      • Submerchant
      • Shipping-Address
      • Promotions
      • Metadata
      • Language
      • InvalidBinResponse
      • GetConfigurationRequest
      • ErrorResponse
      • Deferred
      • Country
      • ContactDetails
      • ChargesVoidCardResponse
      • Channel
      • Card
      • Billing-Address
      • BadRequestResponse
      • Amount
      • Amount-cash-in
      • Amount-CL
  • MΓ©xico πŸ‡²πŸ‡½
    • Bienvenidos
    • ONLINE PAYMENTS
      • CARD
        • CARD
        • 1. Request a card token
        • 2. Make a charge or deferred charge
        • 3. Void a transaction
        • 4. Refund a transaction
        • 5. Request deferred options
        • 6. Authorize payments
        • 7. Reauthorize payments
        • 8. Capture an authorized payment
        • 9. Bin Info
        • 10. Bin Info V2
        • 11. Validate OTP
        • 12. Verify Account
        • 12. Verify Account
        • 6. Authorize payments
        • 10. Bin Info V2
        • 8. Capture an authorized payment
        • 3. Void a transaction
        • 4. Refund a transaction
        • 7. Reauthorize payments
        • 1. Request a card token
        • 9. Bin Info
        • 5. Request deferred options
        • 2. Make a charge or deferred charge
        • 11. Validate OTP
      • CASH IN
        • 1. Request a cash in token
        • 2. Init Transaction
        • 3. Transaction Status
        • 1. Request a cash in token
        • 2. Init Transaction
        • 3. Transaction Status
      • TRANSFER IN
        • 1. Request a Transfer In token
        • 2. Init Transaction
        • 4. Get Status Copy
        • 1. Request a Transfer In token
        • 4. Get Status Copy
        • 2. Init Transaction
      • TRANSFER OUT
        • 1. Get Bank List
        • 2. Request a Transfer Out token
        • 3. Init Transaction
        • 4. Get Status
        • 5. Wallet Balance
        • 5. Wallet Balance
        • 1. Get Bank List
        • 4. Get Status
        • 2. Request a Transfer Out token
        • 3. Init Transaction
      • ONE-CLICK & SCHEDULED PAYMENTS
        • 1. Request a recurring charge token
        • 2. Create a recurring charge
        • 3. Update recurring charge card data
        • 4. Make an One-click payment
        • 5. Cancel a recurring charge
        • 6. Update a recurring charge
        • 7. Add a temporary charge or discount
        • 8. Authorize payments Copy
        • 9. Capture an authorized payment Copy
        • 10. Get recurring charge Info
        • 1. Request a recurring charge token
        • 8. Authorize payments Copy
        • 3. Update recurring charge card data
        • 6. Update a recurring charge
        • 10. Get recurring charge Info
        • 2. Create a recurring charge
        • 5. Cancel a recurring charge
        • 9. Capture an authorized payment Copy
        • 4. Make an One-click payment
        • 7. Add a temporary charge or discount
      • PAYMENT BUTTON
        • 1. Create a payment button
        • 1. Create a payment button
      • SMARTLINKS V2
        • 1. Create a Smartlink
        • 2. Get a Smartlink
        • 3. Delete a Smartlink
        • 4. Update a Smartlink
        • 1. Create a Smartlink
        • 4. Update a Smartlink
        • 2. Get a Smartlink
        • 3. Delete a Smartlink
      • PAYMENT CREDENTIALS
        • 1. Create a credential
        • 2. Search credentials
        • 3. Advanced search
        • 4. Activate or deactivate
        • 5. Delete credential
        • 6. Update credential
        • 7. Regenerate a credential
        • 3. Advanced search
        • 6. Update credential
        • 5. Delete credential
        • 2. Search credentials
        • 4. Activate or deactivate
        • 7. Regenerate a credential
        • 1. Create a credential
      • COMMISSIONS
        • 1. Get Commission Configuration
        • 1. Get Commission Configuration
      • GATEWAY STATUS
        • 1. Get gateway status
        • 1. Get gateway status
      • ANALYTICS
        • 1. Get transactions list
        • 1. Get transactions list
    • CARD PRESENT PAYMENTS (BILLPOCKET)
      • Get token
      • States
      • Validate token
      • Municipalities
      • Collect payments
      • Tax companies
      • Capture an authorized payment
      • Commercial activities
      • Refund
      • Create checkout
      • Get status
      • Get checkout details
      • Collect card payments
      • Print Ticket
      • Collect card payments v2
      • Cancel Push Notification
      • Get transaction status
      • Add or update CLABE account
      • Configure payment link
      • Get payment link configuration
      • Create payment link
      • Update payment link
      • List payment links
      • Delete payment link
      • Add CLABE account
      • Get token
      • Get transaction list
      • Get transaction list v2
      • Get transaction list v3
      • Get transaction list v4
      • Create user
    • CARD PRESENT PAYMENTS (API RAW) Copy Copy
      • error-catalog
      • Test data
      • One-time payments
        • Single payment
      • Two-step-payments
        • Authorization and capture
      • Voids & Refunds
        • Void & Reverse
        • Refund a transaction
      • Card information
        • Balance inquiries
        • Get BIN Info
        • BIN info V2
        • Request deferred options
      • Query Transactions
        • Transaction Search
  • Ecuador πŸ‡ͺπŸ‡¨
    • Bienvenidos
    • ONLINE PAYMENTS
      • Card
        • Overview
        • Request a card token
        • Make a charge or deferred charge
        • Void a transaction
        • Request deferred options
        • Validate OTP
        • Refund a transaction
        • Bin Info
        • Bin Info V2
      • One Click Charges
        • Overview
        • Request a recurring charge token
        • Create a recurring charge
        • Make an One-click payment
        • Cancel a recurring charge
        • Add a temporary charge or discount
        • Get recurring charge Info
        • Update a recurring charge
        • Update recurring charge card data
      • Transfer in
        • Overview
        • Get Bank List
        • Request a Transfer In token
        • Init Transaction
        • Get Status
      • Cash in
        • Overview
        • Request a cash in token
        • Init Transaction
        • Transaction Status
        • Update a cash in transaction
        • Delete a cash in transaction
      • Chargebacks
        • Overview
        • Query chargebacks
        • Request chargeback export
      • Smartlinks
        • Overview
        • Create a Smartlink
        • Update a Smartlink
        • Get a Smartlink
        • Delete a smartlink
        • Get a Smartlink
        • Delete a Smartlink
        • Update a Smartlink
        • Create a Smartlink
      • Payment Button
        • Overview
        • Create a payment button
      • Payment Credentials
        • Overview
        • Regenerate a credential
        • Activate or deactivate
        • Update credential
        • Search credentials
        • Delete credential
        • Create a credential
        • Advanced search
      • Gateway Status
        • Overview
        • Get gateway status
      • Analytics
        • Overview
        • Get transactions list v2
        • Get transactions list v1
      • Commissions
        • Commissions
        • Get Commission Configuration
  • Colombia πŸ‡¨πŸ‡΄
    • ANALYTICS
      • Get transactions list v1
      • Get transactions list v2
    • CARD-OUTS
      • Request a cash out token
      • Init Transaction
      • Update a cash out transaction
      • Delete a cash out transaction
      • Transaction Status
    • CARD
      • Bin Info
      • Bin Info V2
      • Request deferred options
      • Request a card token
      • Make a charge or deferred charge
      • Create payment (tokenless)
      • Authorize payments
      • Preauthorization (tokenless)
      • Capture an authorized payment
      • Reauthorize payments
      • Refund a transaction
      • Void a transaction
      • Verify Account
      • Validate OTP
    • TRANSFER IN
      • Get Bank List
      • Request a Transfer In token
      • Init Transaction
      • Get Status
    • TRANSFER OUT
      • Get Bank List
      • Get Bank List V2
      • Request a Transfer Out token
      • Init Transaction
      • Get Status
      • Void a transaction
      • Balance for Payouts
    • CASH-IN
      • Request a cash in token
      • Init Transaction
      • Update a cash in transaction
      • Delete a cash in transaction
      • Transaction Status
    • CASH-OUT
      • Request a cash out token
      • Init Transaction
      • Update a cash out transaction
      • Delete a cash out transaction
      • Transaction Status
    • COMMISSIONS
      • Get Commission Configuration
    • GATEWAY-STATUS
      • Get gateway status
      • Get platform status
    • ONE-CLICK & SCHEDULED PAYMENTS
      • Request a recurring charge token
      • Update recurring charge card data
      • Update a recurring charge
      • Add a temporary charge or discount
      • Get recurring charge Info
      • Create a recurring charge
      • Make an One-click payment
      • Cancel a recurring charge
      • Authorize payments
      • Capture an authorized payment
    • PAYMENT-BUTTON
      • Create a payment button
    • PAYMENT-CREDENTIALS
      • Advanced search
      • Delete credential
      • Regenerate a credential
      • Search credentials
      • Activate or deactivate
      • Update credential
      • Create a credential
    • SMARTLINKS-V2
      • Create a Smartlink
      • Get a Smartlink
      • Update a Smartlink
      • Delete a smartlink
    • TRANSFER-IN
      • Get Bank List
      • Request a Transfer In token
      • Init Transaction
      • Get Status
    • TRANSFER-OUT
      • Balance for Payouts
      • Get Bank List
      • Get Bank List V2
      • Request a Transfer Out token
      • Init Transaction
      • Get Status
      • Void a transaction
  • Chile πŸ‡¨πŸ‡±
    • Bienvenidos
    • CARD PRESENT PAYMENTS (API RAW) Copy
      • One-time payments
      • Two-step-payments
      • Voids & Refunds
      • Card information
      • Query Transactions
    • Online Payments
      • Card Async
        • Request a card async token
        • Authorize payments
        • Get Status
        • Capture an authorized payment
        • Init Transaction
      • Async Card Recurring Charges
        • Request an async card recurring charge token
        • Init an async card recurring charge
        • Capture an authorized payment
        • Authorize payments
        • Capture an authorized payment
        • Authorize payments
      • Card
        • Bin Info
        • Bin Info V2
        • Request deferred options
        • Request a card token
        • Make a charge or deferred charge
        • Create payment (tokenless)
        • Authorize payments
        • Capture an authorized payment
        • Reauthorize payments
        • Void a transaction
        • Refund a transaction
        • Voucher
        • Validate OTP
        • Verify Account
      • Chargebacks
        • Query chargebacks
        • Request chargeback export
      • Transfer In
      • Transfer Out
      • Cash In
      • Smartlinks V2
      • Analytics
        • Get transactions list v1
        • Get transactions list v2
      • Gateway Status
        • Get gateway status
      • Commissions
      • Payment Credentials
      • Payment Button
      • Platform Status
      • Subscription Transactions
      • Preauthorization (tokenless)
  1. Mobile

Kushki iOS ARM Setup

New project setup using kushki-ios-arm 🍎#

This article will guide you through the configuration of the Kushki library for an ARM processor (Apple Silicon M1/M2/M3). This will allow you to perform tests on physical devices or simulators.
Prerequisites
You must have CocoaPods installed.
Important
Please follow these steps in exact order to ensure a successful build.

1. Create a new project in Xcode#

ab765f4d-92b1-436b-b9db-bd71e1727e32.png
A. Select App.
B. Give it a name and the organization identifier. In this case, we will use the name TestKushkiLib.
C. Select the place where we are going to save the new project (this will create a local git repository).

2. Create a Podfile#

A. Open a terminal at the root of your project and create a Podfile with the command:
B. Open the newly created Podfile and place the kushki-ios-arm library as a dependency. Additionally, you must set the platform variable to ios, '14.3'.
Here is the complete example:
C. Run the install command in the terminal inside the folder where our Podfile is located:
4.
Close Xcode and open the TestKushkiLib.xcworkspace file (white icon) that was created. This contains both your project and the link to the pods.

3. Add Visa and Mastercard libraries#

A. Copy the MastercardSonic.xcframework and VisaSensoryBranding.xcframework libraries into your main TestKushkiLib folder (via Finder).
B. In Xcode, go to the TestKushkiLib project (left bar) -> TARGETS β†’ TestKushkiLib -> Build Phases. In the Link Binary With Libraries section, drag and drop the Visa and Mastercard libraries you just copied.
6d5152b9-9a6f-4de0-a0d1-6125b2514867.png
C. Now, go to the Pods project (left bar) -> TARGETS β†’ kushki-ios-arm -> Build Phases. In the Link Binary With Libraries section, click on the + sign and add the Visa and Mastercard libraries there as well.
67678a2c-d1be-48ea-a2dd-66dbd0813bd5.png

4. Set up the project#

A. Go to TestKushkiLib project -> TARGETS β†’ TestKushkiLib -> Build Settings.
B. Search for the term sandboxing.
C. Set the User Script Sandboxing property to No.
1b53108a-be32-4125-a319-2c5d4488cf06.png
D. Go to TestKushkiLib project -> TARGETS β†’ TestKushkiLib -> General.
E. In the Framework, Libraries and Embedded Content section, ensure the MastercardSonic.xcframework library is set to Embed & Sign.

692e7afa-848d-4db4-ab26-1b040b7268ad.png#

5. Change the Cardinal framework#

Critical Step
You must replace the Cardinal framework manually inside the Pods folder for the project to compile correctly on ARM simulators.
A. Navigate to this path in your project folder:
TestKushkiLib/Pods/kushki-ios-arm/Frameworks
B. Delete the existing CardinalMobile.framework folder.
C. Extract the contents of the attached zip CardinalMobileiOSXC.zip.
D. Go to the path CardinalMobile.xcframework/ios-arm64 from the extracted zip.
E. Copy the CardinalMobile.framework folder found there.
F. Paste it back into your project path: TestKushkiLib/Pods/kushki-ios-arm/Frameworks.

6. Create a test button#

In the ContentView.swift file of your project, add a button with the token request code to test the integration.

7. Run the simulation πŸ“²#

Select your target simulator (e.g., iPhone 15) and press Run (Cmd + R). Click the "Charge" button and check the console for the transaction result.
Modified atΒ 2026-03-13 14:08:17
Previous
Kushki iOS ο£Ώ
Next
Kushki.js 🌐
Built with