capacitor-community / stripe

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

countryCode only US #327

Closed connectMyClub closed 3 months ago

connectMyClub commented 6 months ago

Platform

iOS

Describe the bug Country always shows as United States on iOS despite setting countryCode to GB

To Reproduce Steps to reproduce the behavior:

const createResult =    await Stripe.createPaymentSheet({
              paymentIntentClientSecret: clientSecret,
              customerId: customer,
              customerEphemeralKeySecret: ephemeralKey,
              merchantDisplayName: myMerchantName,
              countryCode: "GB",
              withZipCode: true,
              returnURL: "",
              enableApplePay: true,
              applePayMerchantId: merchantID,
              enableGooglePay: false,
              GooglePayIsTesting: false 
            });

Expected behavior Country or region to show as UK

Screenshots

Additional context

Usage Product

Product Name: Product URL : Using Function: Payment Sheet

rdlabo commented 3 months ago

This is server side issue. Please check this: https://github.com/capacitor-community/stripe/blob/main/demo/server/src/app.controller.ts#L35-L39