I'm implementing Apple Pay in a Flutter iOS app using the pay plugin and Braintree as the payment processor. I have followed all necessary steps as outlined by Apple and community resources (e.g., Medium articles, official Apple Developer documentation), but the Apple Pay button does not appear on a real device. Here's what I've completed:
Created an Apple Pay Merchant ID
Created and downloaded the Apple Pay Payment Processing Certificate, then uploaded it to Braintree
Downloaded the Braintree-signed certificate and confirmed it's active in the Apple Developer portal
Added the Merchant ID under Signing & Capabilities in Xcode
Enabled Apple Pay capability in Xcode
Added the Merchant ID to Info.plist
Installed required Flutter packages (e.g., pay)
Using a valid Apple Pay payment configuration file in Flutter (see below)
Tested on a real iOS device with a valid Apple Pay test card added to Wallet
Flutter Payment Configuration (in Dart JSON):
json Copy Edit { "provider": "apple_pay", "data": { "merchantIdentifier": "merchant.com.example", "displayName": "My Store", "merchantCapabilities": ["3DS", "debit", "credit"], "supportedNetworks": ["visa", "masterCard", "amex"], "countryCode": "US", "currencyCode": "USD" } } Despite this complete setup, the ApplePayButton widget remains invisible There are no errors in the console. Can you help identify what may be missing or misconfigured at the code or configuration level?