capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 74 forks source link

Apple rejected the app due to missing "Merchant name" on the apple pay payment sheet #115

Closed flavioribeirojr closed 2 years ago

flavioribeirojr commented 2 years ago

Describe the bug My app got rejected using the stripe plugin because there is no merchant name that the user can see on apple pay Payment Sheet.

To Reproduce Steps to reproduce the behavior: Create and open the apple pay sheet

Expected behavior I need to be able to show a merchant name on the apple pay payment sheet

Screenshots image

Smartphone:

Is there any way to display the merchant name after the "PAY" text?

flavioribeirojr commented 2 years ago

I was able to resolve this. You can display the merchant name by adding it as the last Summary Item. Ex.:


const summaryItems = [
    ...itemsInPurchase,
    {
        label: 'Food Company Inc.',
        amount: 50 // This needs to be the purchase total
    }
]
rdlabo commented 2 years ago

@flavioribeirojr Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022. https://github.com/capacitor-community/stripe/issues/145 Thanks.

nicks78 commented 1 year ago

Hello, I have the same issue with @stripe/stripe-react-native V0.19.0, I have tried your fixed but the merchant name does not appear on apple pay popup window so apple rejected my app. As you can see I added the label inside cardSummary. const response = await presentApplePay({ cartItems: [ { label: "My CompanyName Limited", amount: "0.00", paymentType: "Deferred", deferredDate: Date.now(), }, ], country: CONFIG_PAYMENT.country, currency: CONFIG_PAYMENT.currency, });

top-kat commented 1 year ago

@nicks78 have you managed to resolved that ?

I have the same problem with "@stripe/stripe-react-native": "0.23.3" and "react-native": "0.71.8"

top-kat commented 1 year ago

Finally I managed to solve this by **setting the payment type to Immediate instead of defered.

A lot of trial and errors to fix that 🥵 Hope it helps

Here is my before / after code:

image
achall9 commented 6 months ago

What if we need to use deferred payments? I am stuck now on this.

achall9 commented 6 months ago

Bump. I haven't found a solution for when using PlatformPay.PaymentType.Deferred.