Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter : Apple Pay button isn't showing in real Device using pay Plugin

I want to use in app purchase, that's why I using Pay plugin in my flutter app. Everything is fine when I check it in my simulator but when I run it on real iPhone button is not showing. Here is screenshot of real and virtual device with same code base.

Simulator -

enter image description here

Real Device -

enter image description here

Now, help me someone. How can I solved this ?

like image 946
Abir Ahsan Avatar asked Nov 01 '25 17:11

Abir Ahsan


2 Answers

@ahmed saeed's answer is correct and here's a more detailed step-by-step tuto

The Apple Pay button will not be visible on a real device until you add a test card to your apple wallet, and in order to be able to do that follow these steps:

  • Create a tester account with Sandbox Apple ID (use a fresh email)
  • Make sure you set the account's country to the US (to avoid any confusion)
  • Logout from apple id on your real device if any is logged in
  • Login with the tester account you've made
  • Set your device region to the US
  • Add a shipping address that is in the US also (Settings > Apple ID > Payment & Shipping)
  • Go to Apple Pay Sandbox and choose one of the testing cards in the list provided by Apple and add it to your wallet (Wallet app)

And you're all set, the Apple Pay button should appear now since you've set your Wallet (Make sure to log out and log in again after any country changes).

Keep in mind that we're setting everything to the US to avoid any countries confusion, I recommend testing it with US settings and after you can test other countries, so make sure to set the country field for:

  1. Sandbox tester
  2. Real device's region
  3. Shipping address
  4. Test card that matches US
like image 177
Nader Hezzy Avatar answered Nov 04 '25 07:11

Nader Hezzy


The reason that Apple Pay button is not visible when you test it on a real device is probable because you haven't added any cards in your apple wallet.

If that is the case then you will need to add a testing account in your apple developer's testers sandbox and then logout your apple id in your iphone and signin with the new testing account and then you'll be able to add some dummy cards in the wallet and after that you'll be able to see the apple pay button.

You can follow the apple pay sandbox testing documentations

Apple Pay Sandbox Testing

like image 42
Ahmed Saeed Avatar answered Nov 04 '25 07:11

Ahmed Saeed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!