Skip to main content
Question

Apple pay not working not working


Forum|alt.badge.img+4

In my flutter app i followed this video steps : https://youtu.be/TrkiSZ2mnlo?si=ko6_FyFvwBjl0mAP :

I have this elevated button to make the purchase : 

 ElevatedButton(

                      onPressed: () async {

                        try{

                          await Purchases.purchaseProduct('Zenth_2000_coins');

                          debugPrint('Payment success');

                        } catch (e){

                          debugPrint('Failed : $e');

                        }

                      },

                      child: Text(

                        'Buy',

                      ),

                    ),

 

now when i test and i hit purchase and type my sandbox account password , the apple pay window close and opens again and if i try again and click purchase and type the password it just keeps on this loop and the transaction never appears on my revenuecat dashboard and never prints payment success ( i ticked the sandbox on revenue cat , and checked all the steps 

3 replies

Forum|alt.badge.img
  • New Member
  • 1 reply
  • November 22, 2023

I’m having a similar problem, I think there is a strange behavior on iOS.. in my case it takes unusual long time for apple pay to load, and sometimes I need to log out from the app and log in again for this action to complete.

Any advice?!


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 418 replies
  • November 23, 2023

Hi, this could just be the sandbox environment, but can you run the RevenueCat SDK’s debug logs to see if there are any errors being thrown for this? You can enable them following this guide: https://www.revenuecat.com/docs/debugging#section-debugging


Forum|alt.badge.img+8
  • RevenueCat Staff
  • 418 replies
  • December 8, 2023

This could be related to the issue here, can you check if you are using Purchasely and provide debug logs? 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings