#yoitspeterson-ios-payment-element

1 messages · Page 1 of 1 (latest)

grim plinth
#

Hi there!

#

Let's chat in this thread

floral rose
grim plinth
#

Can you share your code for how you are rendering Payment Element here?

#

yoitspeterson-ios-payment-element

floral rose
#

ready() {

    const elements = this.state.stripeClient.elements({

        clientSecret: this.props?.clientSecret,
    });

    const element: StripePaymentElement = elements.create('payment', {

        paymentMethodOrder: ['card'],
    });

    this.update({ element, elements });

    element.mount('#payment-element');

    this.trigger('payment-element-mounted');

    element.on('change', (event) => this.trigger('payment-element-changed', event));

    this.on('payment-succeeded', () => element.unmount());

    this.on('checkbox-checked', () => {

        // if using default payment method to checkout payment element should be disabled
        element.update({
            readOnly: ($('#default-payment-checkbox' ) as HTMLInputElement[])[0]?.checked,
        });
    });
},
grim plinth
#

Thanks and are you seeing the same behavior here across different browsers?

floral rose
#

it was present iOS only, i am not sure what browser, i just asked our QA team

grim plinth
#

Okay that would be useful to know the browser if you can find that out.

#

Thinking about what this might be... give me a few mins

floral rose
#

thanks! i will try to replicate in the mean time

grim plinth
#

The device you are experiencing this on would also be really helpful

floral rose
#

iPhone 8 Plus on iOS 15.4

iPhone 11 Pro Max IOS 15.4

grim plinth
#

Thanks that's great. Did you get the browser as well?

floral rose
#

i looks like chrome

#

they didnt answer but its not safari url footer

grim plinth
#

Thanks, let me see if I can reproduce.

#

What localization is that?

floral rose
#

our QA team is in belarus

grim plinth
#

Thanks

#

Can you provide your appearance code?

floral rose
#

i have none on this element

grim plinth
#

Hmm it doesn't have any labels though

floral rose
#

should look like this

grim plinth
#

Oh it does have labels

#

They are just really dark

#

Can barely see them

#

Ah okay I think I see what is happening

#

Yep got it

#

So the issue is because the Russian locale has such a long label for expiry

#

It is messing with the mobile formatting

#

I'll need to file a ticket internally for this

#

So really this should only be an issue for Russian (or Belarussian) customers.

floral rose
#

ahhh

#

okay i see, thank you also for catching the really dark labels, i look at this all day i forget whats there and whats not sometimes

grim plinth
#

Yep no problem!

floral rose
#

to change the label color can i do that from within appearance or do i need to set a variable

grim plinth
floral rose
#

awesome thanks

#

can you text-transform to all uppercase

grim plinth
#

Yep that is a rule option

floral rose
#

can you change color of floating label and the text color once typing into a field

grim plinth
#

Ah sorry I had stepped away here.

#

I need to step away again, so I'm going to have one of my colleagues take over here if you have more followups