#Namrata
1 messages · Page 1 of 1 (latest)
Hii in my laravel application i am using payment Intent API i would like to pass custom form field for card details
dont want to use card-element default div
OK, so what integration are you using? PaymentElement?
PaymentIntent API is for backend.
How about front-end integration? Stripe provides PaymentElement and CardElement for collecting card details. You said you don't want to use CardElement, so are you using PaymentElement?
stripe.confirmCardPayment($("#clientSecreat").val(), {
payment_method: {
card: card,
billing_details: {
}
},
setup_future_usage: 'off_session'
})
number: $('.card-number').val(),
cvc: $('.card-cvc').val(),
exp_month: $('.card-expiry-month').val(),
exp_year: $('.card-expiry-year').val()
i want to pass like this
Hmm, are you trying to collect the card number directly from your own UI control?
yes
I see. However, you need to get your application PCI compliant if your application is handling card number directly. https://stripe.com/docs/security/guide
W can only help simplify PCI compliance if you’ve integrated with Checkout, Elements, or our mobile SDKs.
Sure, how can I help?
i want to use default checkout page of stripe in my application
OK. for that you can use the Checkout Session API.
https://stripe.com/docs/payments/accept-a-payment this guide should help you get started with Checkout
i dont want to redirect from website to checkout page i want used design only
You want to build a checkout page by yourself with PaymentElement?
yes
OK. Although I'd suggest you to use Checkout. But it's really up to you to decide what integration you want to build for your application.