#ocardenas
1 messages ยท Page 1 of 1 (latest)
Hey there, what are you having trouble with in your integration?
In future, try to include your question in your initial message ๐
Ok soryy
๐
how I can change the design of the payment element? can I remove the cards logos?
and other question how I can know if my payment element is valid before go to confirmPayment?
Thanks a lot
You can read about using the Appearance API to customize the payment element styles here: https://stripe.com/docs/elements/appearance-api
For this, you'd set up listening for the change event and inspect the complete attribute in the event
https://stripe.com/docs/js/element/events/on_change?type=paymentElement#element_on_change-handler-complete
NP!
Hi I have other
doubt
sorry
I want collect the name and email that the person that payment
so I'm making this
const { error } = await stripe.confirmPayment({
elements,
confirmParams: {
payment_method_data: { billing_details : {
name : form.first_name + " " + form.last_name,
email : form.email
} },
// Make sure to change this to your payment completion page
return_url: getReturnUrl(),
},
});
my question is where I can see the billing_details?
thanks
๐
That information ends up on the payment method object in the billing details:
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What do you mean? That's part of our API
Oh, on the payment method used for the payment, then
Great!