Skip to main content
Before you submit a build that accepts Tap to Pay payments in production, examine each item on this list.

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.acceptance is true. 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 NSBluetoothAlwaysUsageDescription and NSLocationWhenInUseUsageDescription. 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 of WhopTTPCore.
  • 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:charge and payment: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:update run only on your server.

SDK setup

  • TapToPay uses .production. You give .production, or you do not give environment.
  • The accountID is the same as the account_id of your tokens.
  • You call readiness(). Your app has an action for each status, also for .unsupported.
  • You hide Tap to Pay when isSupported is false.

Payment flow

  • After readiness() is .active, you call prepare() 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 isBusy is true.
  • The seller can cancel while phase is .waitingForCard.
  • You show a clear message for each TapToPayError code. You record code, underlyingCode, and paymentID.
  • 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.