I assume SSL is required. Is it correct?
Yes, right.
Should I switch from shared hosting to a dedicated server?
VPS to a minimum is a very good idea. You are probably not compatible with a PCI-compatible host on a shared host; you just don’t have enough control to lock your server on PCI request.
I assume that the encryption is absent is not easy and not reversible, what can happen between the HTML form and the PHP script, should any encryption be used for what I am trying to do?
Your API should take care of this. Make sure the API also supports SSL / Secure connection.
Please read the PCI requirements. You are transferring cardholder data, so you MUST FOLLOW PCI. You will be at the “lowest level” of matching (I think this is C or D). You will also need to perform quarterly checks on your IP server to prove compliance. Like FYI, I use McAffee Secure for this.
The only way you will not abide by the PCI rules is that the cardholder data is entered on a foreign server (I think: paypal). Whenever you pay by PayPal, you are transferred to the PayPal server and then transferred back. In this scheme, you do not need to be compatible.
Currently, many PCI requirements speak of some things that are not applicable in the question (i.e. your server is stored in a safe place, how physically safe your building is, etc.) - the good news is that your server / hosting company must handle with this.
After scanning the network, a list of things will appear that will make you incompatible. They are almost always connected to the server. You can either fix them yourself or ask your host to help you - most hosts will do this if you send them a list. You cannot fix them on shared hosting.
source share