I managed to create the new payment gateway onsite by looking at other payment gateway code inside Event Espresso.
Problem 1: EE_CREDIT_CARD_MONTH_INPUT and EE_CREDIT_CARD_YEAR _INPUT don’t recognize html_other_attributes. I need it because the payment required data-encrpyt attribute as you can see in sample code. After trying so hard, I resorted to using EE_TEXT_INPUT instead. Is there a way I can still use select inputs for month and year but with data-encrypt attribute?
Problem 2: When form is submitted thru the above JS code, I am getting the error that the form was not actually submitted due to the PHP code in _billing_form_is_valid . What the JS above does is that it encrypts the credit card details and adds another field in the POST body called encryptedData. So, can someone help me what’s the right approach to make this work?
I do know that card information is sanitized so we do not store it but unfortunately, I’m not sure what is the recommended way to handle that information securely.
Could you post this question over on our Github project so a developer can follow up with you directly?
The support post ‘Custom Payment Gateway Requires Form to be Submitted From JS’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.