"Setup Pay" text appearing as IN_APP_PAYMENT_BUTTON_SETUP Pay

Viewed 773

I have localization in my project, when i add the apple pay button it displays IN_APP_PAYMENT_BUTTON_SETUP instead of "Setup Pay".

Strangely same code displays proper Apple pay button when added to a different sample project.

if ([PKPaymentAuthorizationViewController canMakePayments]) {



        if ([PKPaymentAuthorizationViewController canMakePaymentsUsingNetworks:@[PKPaymentNetworkVisa, PKPaymentNetworkMasterCard, PKPaymentNetworkAmex]]) {

            //Standard code
        }
        else{

            UIButton *btnApplePay = [PKPaymentButton buttonWithType:PKPaymentButtonTypeSetUp style:PKPaymentButtonStyleWhiteOutline];
            [btnApplePay setFrame:CGRectMake(10, 10, 294, 50)];
            [self.view addSubview:btnApplePay];


        }
    }

Also if the width of the PKPaymentButton is of size smaller than 128 px then the PKPaymentButton displays " Pay" text.

1 Answers
Related