-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Description
I'm working on a custom WHMCS payment gateway module. According to the WHMCS documentation, the card CVV should be available in the $params variable of the _storeremote function under the key cccvv.
However, when implementing this, my POST request to the gateway API consistently returned an error. Upon further investigation, I found that the actual key name for the card CVV in the $params array is cardcvv, not cccvv.
This discrepancy also appears in the documentation for merchant gateways as well as in the sample-merchant-gateway repository.
Steps to Reproduce
- Implement a custom payment gateway module using
_storeremote. - Retrieve the
$params['cccvv']value and send it to the gateway API. - Observe that the API returns an error due to the incorrect parameter name.
- Inspect the
$paramsarray and find that the correct key iscardcvv, notcccvv.
Expected Behavior
The documentation should specify cardcvv as the correct key name for the CVV field to prevent errors in custom payment gateway implementations.
Current Workaround
For now, I am using cardcvv in my implementation, as that is the key name WHMCS actually provides.
Request
If this is an intended change and the documentation is outdated, please update the documentation accordingly. If cccvv is the intended key name but not currently working, please let me know if an update is planned so I can adjust my implementation accordingly to avoid breaking changes.
Thank you for your time!