Apple
- Apple gave your team the Tap to Pay on iPhone entitlement for distribution, not only for development. Refer to Request the entitlement.
- In the entitlements file of the app target,
com.apple.developer.proximity-reader.payment.acceptanceistrue. Your distribution provisioning profile includes this entitlement. - Your app shows the feature as the Apple guidelines for Tap to Pay on iPhone tell you.
App configuration
- Info.plist has
NSBluetoothAlwaysUsageDescriptionandNSLocationWhenInUseUsageDescription. The text of each key is clear to your sellers. - The app asks for When In Use location permission before the first charge.
- Your app uses a released version of
WhopTTP. You did not add a different version ofWhopTTPCore. - There is no API key in the app bundle, its configuration files, or its build settings.
Server
- Your token endpoint uses a production API key. It calls
https://api.whop.com/api/v1/access_tokens. - Tokens have only
payment:chargeandpayment:basic:read, for the account of the seller. - The token endpoint uses your login. It makes sure that the signed-in person has permission to sell for that account.
- Calls that activate Tap to Pay with
payout:account:updaterun only on your server.
SDK setup
TapToPayuses.production. You give.production, or you do not giveenvironment.- The
accountIDis the same as theaccount_idof your tokens. - You call
readiness(). Your app has an action for each status, also for.unsupported. - You hide Tap to Pay when
isSupportedisfalse.
Payment flow
- After
readiness()is.active, you callprepare()when the app starts. You also call it each time that the app comes back to the foreground. - On each device, an administrator accepts the Apple terms during
prepare(), before the first sale. - You disable the charge button while
isBusyistrue. - The seller can cancel while
phaseis.waitingForCard. - You show a clear message for each
TapToPayErrorcode. You recordcode,underlyingCode, andpaymentID. - For
.outcomeUnknown, you examine the payment before you let the seller charge again. - You make custom amounts from strings or integers, not from
Double. - You did a real charge on a production account with a real card. Then you refunded it.
Next steps
Troubleshooting
Solutions for frequent problems after the release.
Refunds and disputes
Refund Tap to Pay payments as you refund other Whop payments.

