Search code examples
iosstripe-paymentsappstore-approvalapplepay

Stripe / Apple-pay Icon presented wrongly/ rejected by apple store


Apple rejected my app because Stripe pod show inappropriate apple pay icon, which added an extra "apple pay" next to the apple pay icon. (see attached)

Is anyone had the same problem like me and what are your solution?

Is anyone had successfully uploaded an app with apple pay function installed?

enter image description here

Please See my calling code as below too, many thank!

    private func reloadPaymentButtonContent() {

    guard let selectedPaymentMethod = paymentContext.selectedPaymentOption else {
        // Show default image, text, and color
        paymentButton.setImage(#imageLiteral(resourceName: "Payment"), for: .normal)
        paymentButton.setTitle("付款", for: .normal)
        paymentButton.setTitleColor(.gray, for: .normal)
        return
    }

    // Show selected payment method image, label, and darker color
    paymentButton.setImage(selectedPaymentMethod.image, for: .normal)
    paymentButton.setTitle(selectedPaymentMethod.label, for: .normal)
    paymentButton.setTitleColor(.blue, for: .normal)
}

private func reloadBuyButton(){
    if paymentContext.selectedPaymentOption == nil {
        //            buySubscriptionButton.backgroundColor = .loopGrayColor
        //            buySubscriptionButton.setTitle("订阅", for: .normal)
        //            buySubscriptionButton.setTitleColor(.white, for: .normal)
        buySubscriptionButton.isEnabled = false
    }else{
        buySubscriptionButton.isEnabled = true
        //            buySubscriptionButton.backgroundColor = .loopGreenColor
        //            buySubscriptionButton.setTitle("订阅", for: .normal)
        //            buySubscriptionButton.setTitleColor(.white, for: .normal)
    }

Solution

  • You're setting both in the code. So, either set Image or Label text.