I intend to develop a mobile app for both Android and iOS using PhoneGap and this app will including a shopping cart to sell physical goods like shoes and clothes. Of course at the moment of payment, sensitive card data (card number, CVV, etc..) need to be collected. My intention is to communicate with a remote server via JSONP both to get the latest items available for sale and also to send the server the credit card details in order to process the payment.
Now my question is this, at apple, when you submit an app to stay on the market, apparently they test your application and accept/reject it based on the way it was programmed. If I:
- collect the card details in a regular form on the mobile app
- send the details to an SSL remote location via JSONP
- in the remote location (PHP script) I forward the card details to a payment gateway and wait for a response
- I forward the response back to the mobile app via JSONP
- I inform the user whether the payment was successful or not
Questions:
- Will Apple or Android reject my app because it is not safe or whatever reason?
- Is it safe to collect and send card details in this manner?
- Am I free to use any payment gateway or must I only use something like the PayPal plugin of phonegap?
- Do I need to have something which is PCI compliant somewhere .. is it enough that I send card details via SSL?
Any help is much appreciated. :>
Payment