Troubleshooting
The app stops at the first charge
The app stops at the first charge
NSBluetoothAlwaysUsageDescription or NSLocationWhenInUseUsageDescription is not in Info.plist. If an app uses Bluetooth or location without the usage description, iOS stops the app. Add the two keys. Refer to Before you start.The device does not show support for Tap to Pay
The device does not show support for Tap to Pay
isSupported is always false. Examine each of these items:- The device is an iPhone XS or later with iOS 18 or later. An iPad cannot use Tap to Pay.
- You sign the app with the Tap to Pay on iPhone entitlement.
- Your app does not add a version of
WhopTTPCorethat is different from the version thatWhopTTPuses.
Charges fail after an SDK update
Charges fail after an SDK update
charge throws .readerIncompatible. WhopTTP and WhopTTPCore must come from the same release. Add only WhopTTP to your app. Swift Package Manager then adds the correct WhopTTPCore. If you added WhopTTPCore, remove it. Then select File → Packages → Reset Package Caches.Whop also sends this code when it does not accept your SDK version for an account. Update WhopTTP. Then release a new build.Whop rejects every token
Whop rejects every token
charge throws .invalidCredentials. The token is for the other environment. If you create a TapToPay without environment, it uses production. Thus, your server must use a production API key. In sandbox, the key and TapToPay(…, environment: .sandbox) must both be for sandbox.Whop refuses every charge with a 403
Whop refuses every charge with a 403
charge throws .requestFailed with an underlyingCode of 403. Thus, the token cannot charge this account. Make sure that these conditions are true:- Your server creates the token with the same
biz_ID inaccount_idthat you give toTapToPay(accountID:). scoped_actionsincludespayment:chargeandpayment:basic:read.- The API key has the two permissions on the account.
readiness()returns.active.
The SDK cannot get a token
The SDK cannot get a token
charge throws .credentialsUnavailable. Your token provider threw an error or returned an empty string. Call your token endpoint manually. Make sure that it returns { "token": "…" }. If a token provider throws a TapToPayError, the SDK gives you that error.The first charge is slow
The first charge is slow
.updatingReader(progress:) shows. The charges after it use the same connection and start sooner. Call prepare() when the app starts and each time that it comes back to the foreground. Then the connection is ready before the seller charges.The Apple terms screen does not show, or fails
The Apple terms screen does not show, or fails
charge throws .termsNotAccepted.A charge is busy when no operation runs
A charge is busy when no operation runs
TapToPay instance in your app runs a charge, or it did not complete a charge. Only one charge can run on a device at a time. Keep one TapToPay for each account while your payment screen is open. Do not create a new instance for each charge.readiness shows unsupported
readiness shows unsupported
Common questions
Card reader hardware
Card reader hardware
iPad and Android
iPad and Android
A restricted API key in the app
A restricted API key in the app
Several accounts in one app
Several accounts in one app
TapToPay for each account. Give each instance its own token provider. Only one charge can run on the device at a time, for all accounts.Refunds
Refunds
pay_ ID. Refer to Refunds and disputes.Where payments show up
Where payments show up
metadata to connect them to your records.Card data
Card data
Background use
Background use

