This code does not contain what is needed for Secure Card Authentication (SCA). Even with the generic card flow, there is a decline message.
Authorization error: 'CARD_DECLINED_VERIFICATION_REQUIRED'
I've been messing with this for a few days, and I am working to integrate this with the WHMCS Billing system. The old payment form worked perfectly, but now the SCA has been causing issues.