capacitor-community / stripe

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

iOS: build not approved because Apple Pay misses " Merchant's name on the payment sheet" #143

Closed ciccilleju closed 2 years ago

ciccilleju commented 2 years ago

hello, i was submitting a bug fixing to my app already present in the iOS store but today they refused it because of this message: image

this is my code related to Apple Pay:

`async createApplePay(): Promise {

let requestUrl = this.generateStripeIntentWallet;
let postData = { idOrdine: this.idOrdine };
this.http.doPostApplicationJsonBearer(requestUrl, postData, this.myService.tokenValue).subscribe((res => {
  this.paymentIntent = res.id;
  Stripe.createApplePay({
    paymentIntentClientSecret: res.client_secret,
    paymentSummaryItems: [{
      label: this.utilsOmbrelloniProvider.idOrdine,
      amount: this.utilsOmbrelloniProvider.totale
    }],
    merchantIdentifier: 'mymerchant.xxxxxx',
    countryCode: 'IT',
    currency: 'EUR',
  }).then(() => {
    Stripe.isApplePayAvailable().then(() => this.isApplePayAvailable = true);
  }).catch(error => {
    console.log(error);
  });

}));

}`

this is what i found in the iterface: export interface CreateApplePayOption { paymentIntentClientSecret: string; paymentSummaryItems: { label: string; amount: number; }[]; merchantIdentifier: string; countryCode: string; currency: string; } export interface CreateGooglePayOption { paymentIntentClientSecret: string; }

I don't see any variable related to the merchant's name.

How can I solve this problem with Apple? There is any way to set Merchant's name on the payment sheet?

image

rdlabo commented 2 years ago

This seems solved issue: https://github.com/capacitor-community/stripe/issues/115

ciccilleju commented 2 years ago

excellent,

thank you so much,

i'll send a new build right now!

fingers crossed :)

rdlabo commented 2 years ago

@ciccilleju 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.

ciccilleju commented 2 years ago

@ciccilleju 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.

hello! I thik 've solved adding our app name to "label" label: "Sunset Beach App " + orderId

rdlabo commented 2 years ago

@ciccilleju Hi, thanks for quick response! We want to know your app infomation. If possible, please write to https://github.com/capacitor-community/stripe/issues/145 . Thanks.

ciccilleju commented 2 years ago

@ciccilleju Hi, thanks for quick response! We want to know your app infomation. If possible, please write to #145 . Thanks.

Will do within one hour