#naveel1596

1 messages · Page 1 of 1 (latest)

wispy wrenBOT
crystal frost
#

What are you using to render that? Is that the Card Element?

lost breach
#

yes. var cardElement = elements.create('card');

#

any suggestions?

crystal frost
#

What is the "new UI" you mentioned? Where are you seeing it?

lost breach
#

like that

crystal frost
#

That's the Mobile Payment Element, which is different from the Card Element. Are you building a mobile integration? What does your integration actually look like? What languages is it using?

We really need a lot more info to be helpful here

lost breach
#

I am building a web application. I am using PHP/ jquery

lost breach
# lost breach any suggestions?

const appearance = {
theme: 'stripe'
};

// Pass the appearance object to the Elements instance
const elements = stripe.elements({clientSecret, appearance})

my card element is empty as you can see. when changed to above it shows an error on the browser console with same old ui. I can't able to add clientSecret at the beginning of the code. I added the client's secret in Ajax when from submit.

#

does the new design require ClientScrent at the start when the page loads?

crystal frost
lost breach
#

well, I have used the same functionality code as you sent me a link. but It showes me old UI.

#

my question is if I don't have clientSecret. does the new UI didn't work?

this my current code
const elements = stripe.elements();

#

are you a developer?

#

const elements = stripe.elements();
const paymentElement = elements.create('card');

#

this my current code in js

crystal frost
lost breach
#

what is differnce between elements.create('card') and elements.create('payment')?

crystal frost
#

That's the Payment Element. That's the product I was referring to earlier that you could switch to using instead of the Card Element.

lost breach
wispy wrenBOT