'how to handle paypal and stripe at checkout with one form
i am new in web developing and learning how to create eCommerce website. i have created simple ecommerce website where i am integrating paypal and stripe both at checkout page but i do not understand how i can handle paypal and stripe with one Form(Which is customer data and shipping detail). here is detail
<form id='customerdetail' action='' >
<input name=customername'/>
</form>
<form id='stripecarddetail' action=''>
<input name='cardnumber' />
<input name='cvv' />
<input name='expiredate' />
<input type='submit' value='Pay Now' id='paywithcard' />
</form>
so i want when i click on stripe card submit button it gets card detail + customer detail and pass it to the php function. right now it only sending card detail not customer detail. is there any way ? or better way please help
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
