#Emil Saghatelyann-billing-details
1 messages · Page 1 of 1 (latest)
Hey! You're liking using the Payment Methods API (which is new) as opposed to Cards which is old and mostly deprecated
How are you integrating? Payment Element? Checkout?
from client side I am using 'js.stripe.com/v3/' . creating stripe card element from there. then attache saved card response (source) to customer
Can you share your JS code please
But you can use the billing_details parameter when confirming the payment: https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
const elements = this.stripe.elements();
this.stripeCard = elements.create('card');
this.stripeCard.mount(this.cardElement.nativeElement);
this.stripeCard.addEventListener('change', ({error}) => {
this.cardErrorMessage = error && error.message;
});
Are you using Payment Intents with confirmCardPayment?