Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
flavioribeirojr opened this issue Oct 14, 2021 · 7 comments

Comments

@flavioribeirojr
Copy link

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:

  • Device: iPhone 1 1 Pro Max
  • OS: ios 14

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

@flavioribeirojr
Copy link
Author

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
Copy link
Member

rdlabo commented Jan 19, 2022

@flavioribeirojr Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022.
#145
Thanks.

@nicks78
Copy link

nicks78 commented Oct 15, 2022

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
Copy link

top-kat commented Jun 14, 2023

@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
Copy link

top-kat commented Jun 29, 2023

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
Copy link

achall9 commented Dec 21, 2023

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

@achall9
Copy link

achall9 commented Dec 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants