Exemplo n.º 1
0
        //Apple Pay (In App Payments)
        void ApplyApplePayCapability(ApplePayCapability capability)
        {
            //update pbxproject
            _pbxproj.EnableSystemCapability("com.apple.ApplePay", true);
            //update entitlements file
            var entitlementChanges = new PListDictionary();
            var groups             = new PListArray();

            entitlementChanges.Add("com.apple.developer.in-app-payments", groups);

            foreach (var item in capability.MerchantIds)
            {
                groups.Add(item);
            }

            ApplyEntitlementsChanges(entitlementChanges, true);
        }
Exemplo n.º 2
0
 public ApplePayCapability(ApplePayCapability other)
     : base(other)
 {
     MerchantIds = new List <string>(other.MerchantIds);
 }