Posts

Post not yet marked as solved
0 Replies
1k Views
I'm currently working with a PKPaymentAuthorizationViewController and presenting it to validate a payment within my application. I am able to present the controller but receive an error stating "Invalid in-app payment request. PKPaymentRequest must contain a property 'countryCode' of type 'NSString'". I have set the country code for the payment request and still receive this error. Attached below if the code I'm using to create the payment request and present the controller. I have X'd out my merchant ID for the purpose of posting. Any help would be appreciated.PKPaymentRequest *request = [[PKPaymentRequest alloc] init]; request.countryCode = [NSString stringWithFormat:@"RU"]; request.currencyCode = [NSString stringWithFormat:@"RUB"]; request.merchantIdentifier = @"merchant.com.xxxxxxx"; request.supportedNetworks = @[PKPaymentNetworkVisa, PKPaymentNetworkMasterCard]; request.merchantCapabilities = PKMerchantCapability3DS;
Posted
by igor2019.
Last updated
.