ios - PKPaymentAuthorizationViewController not nil but not showing -


i'm trying display pkpaymentauthorizationviewcontroller not nil isn't showing. worked before doesn't anymore. entitlement , merchant id seems good. here init code (without useless code)

pkpaymentrequest *request = [pkpaymentrequest new];  request.merchantidentifier = kapplepaymerchantid; request.merchantcapabilities = pkmerchantcapability3ds; request.supportednetworks = self.class.supportednetworks; request.countrycode = _countrycode; request.currencycode = _currencycode; request.requiredshippingaddressfields = pkaddressfieldall; request.requiredbillingaddressfields = pkaddressfieldname | pkaddressfieldpostaladdress; request.paymentsummaryitems = summaryitems;  pkpaymentauthorizationviewcontroller *paymentvc = [[pkpaymentauthorizationviewcontroller alloc] initwithpaymentrequest:request]; paymentvc.delegate = self; return paymentvc; 

then display using

- (void)presentviewcontroller:(uiviewcontroller *)viewcontrollertopresent animated: (bool)flag completion:(void (^ __nullable)(void))completion; 

but nothing happens. no log ...

i tried set breakpoint before return paymentvc;, printed object (seemed ok) , pressed play , had following log

payment request invalid: check entitlements 

the apple pay view controller showed , crashed in bad access error.

i don't understand happens. can me bug ?

wow found it, after day of research. if have default apple pay shipping address (in wallet entry, settings) non valid field (i don't know rules it), apple pay sheet won't pop ... aware of !


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -