title: How to securely get customer's credit card when using direct card payment of Paypal Rest API
body: <p>I'm trying to accept customer's card then call Paypal's Rest API to make a payment. I see in the PHP sample code, <a href="https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/payments/CreatePayment.php" rel="nofollow">https://github.com/paypal/PayPal-PHP-SDK/blob/master/sample/payments/CreatePayment.php</a> , it kind of assumed a card is known. </p>
  
  <p>My concern is about how to get customer's credit card info SECURELY. If i just use some http input field, would it be vulnerable on the internet? If yes,  what should I do to prevent the card from leaking into some hackers hands. Thanks! </p>
  
  <p>PS: I'm using Codeigniter frame work, would be hosted by godaddy Linux server. </p>
  
  <p>PPS: Currently I guess i need to make my payment page a HTTPS, any direction about how to achieve that (if needed) would be appreciated. </p>