Closed flavioribeirojr closed 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
}
]
@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.
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, });
@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"
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:
What if we need to use deferred payments? I am stuck now on this.
Bump. I haven't found a solution for when using PlatformPay.PaymentType.Deferred.
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](https://user-images.githubusercontent.com/21633230/137347219-0ccea207-1e98-4ac9-b3f4-578eaec77600.png)
Smartphone:
Is there any way to display the merchant name after the "PAY" text?