#fireenn-paymentelement-formdata
1 messages · Page 1 of 1 (latest)
fireenn-paymentelement-formdata
Hey @alpine rivet can you provide a bit more details around your ask?
Yeah so I'm building an application around subscriptions and using the payment and address elements to capture payment details.
I was trying to send the data to the backend to do the whole confirmation of the payment intent on the backend instead of on the front end when I try to do something like
$("#payment-form").serialize()
and use an ajax call to pass whatever that serialization may be I get an empty string.
whereas my html is something simple like
<form id="payment-form">{% csrf_token %}
<div id="link-auth-element" style="min-width: 65vh"></div>
<div id="address-element" style="min-width: 65vh"></div>
<div id="payment-element" style="min-width: 65vh"></div>
</form>
I don't fully grasp what you are trying to do I'm sorry
like if you use PaymentElement, you can't really do anything on the back end, you confirm client-side, that's the canonical flow
I don't get what you are trying to "serialize" either. Your code has no access to the content of those iframes
Sure though I'm happy to explain more if you need more help