<key>com.apple.developer.proximity-reader.payment.acceptance</key><true/>
BleuMerchantSDKClient.shared.provisionDevice(merchantCode: "yourMerchantCode", merchantPin: "yourMerchantPin")BleuMerchantSDKClient.shared.provisionDevice(merchantCode: "yourMerchantCode", merchantPin: "yourMerchantPin") { result inswitch result {case .success:print("Device provisioned successfully.")case .failure(let error):print("Provisioning failed: \(error.localizedDescription)")}}
BleuMerchantSDKClient.shared.areTermsAndConditionsAccepted()BleuMerchantSDKClient.shared.acceptTerms()BleuMerchantSDKClient.shared.storesBleuMerchantSDKClient.shared.registerDevice(storeID: "selectedStoreID")AppDelegate function inside application(:didFinishLaunchingWithOptions:), call:BleuMerchantSDKClient.shared.initialize(environment: .production, loggingLevel: .verbose)
BleuMerchantSDKClient.shared.pay(amount: Int, breakdown: PaymentBreakdown?, terminal: String, currency: CurrencyCode)
| Parameter | Data type | Description |
|---|---|---|
| subtotal | Int | Amount of the transaction before taxes and fees. The value is in cents. |
| taxRate | Int | Percentage rate of the tax for the transaction. |
| taxAmount | Int | Amount of tax added to the transaction. The value is in cents. |
| tipAmount | Int | Amount of tip added to the transaction. The value is in cents. |
| tipType | TipType | Indicates if the tip is a fixed amount or a percentage of the transaction. The value is one of the following: - fixed - percentage |
BleuMerchantSDKClient.shared.status
• Subscribe to reader eventsBleuMerchantSDKClient.shared.readerReadinessEvents
• Check Tap to Pay availabilityBleuMerchantSDKClient.shared.isTapToPayAvailable()
• Get device IDBleuMerchantSDKClient.shared.deviceID
• Fetch past transactionsBleuMerchantSDKClient.shared.getTransactionHistory()
• Retrieve transaction detailsBleuMerchantSDKClient.shared.getTransactionDetail(transactionID: "transactionID")
• Retrieve active session tokenBleuMerchantSDKClient.shared.token