Skip to content

Incorrect Parameter Name cccvv in WHMCS Custom Payment Gateway Documentation #2

@RyusakiEma

Description

@RyusakiEma

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

  1. Implement a custom payment gateway module using _storeremote.
  2. Retrieve the $params['cccvv'] value and send it to the gateway API.
  3. Observe that the API returns an error due to the incorrect parameter name.
  4. Inspect the $params array and find that the correct key is cardcvv, not cccvv.

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions