I'm trying to create an external suitelet that allows customers to pay invoices via credit card from a unique link on each invoice. Reason being that we are locked into a contact with Cybersource so we cannot switch to another processor which offers similar functionality (such as MerchantE) and we'd prefer not to use NS's Customer Center. I got the idea of using a Suitelet from Marty Zigman's article where he discusses how him and his team have created this functionality. This idea intrigued me as a good project to work on to better my SuiteScript skills. My question, though, is whether such a Suitelet would be PCI DSS compliant? And if not, how to create a complaint suitelet via SuiteScript API?
The part where I'm worried about compliance is when the credit card number/information will be transferred from the client's browser to the server via POST request when the form is submitted by the payer. If the card number is entered into a TEXT field, I think this would be non-compliant since that would be transferred over NetSuite's servers in unencrypted format? That being said, what's the best way to encrypt a field before the POST request takes place via the submit button?
I've looked into NetSuite's N/crypto module, the Form.addCredentialField method from the N/ui/SeverWidget module, etc. but I'm really struggling on what would be the best method for encrypting CC data and to ensure PCI compliance.
Any thoughts or insights would be GREATLY appreciate! :)
Thanks!