-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Webform_civicrm uses deprecated contribution.transact api.
@Seealso https://www.drupal.org/project/webform_civicrm/issues/3186875
When using it with Authorize.net (com.donordepot.authnetecheck) any contribution ends in an error "Unknown api version" - recent log messages says
The CiviCRM "contribution transact" API returned the error: "Unknown api version"
when called by function "validate" on line 97 of wf_crm_webform_postprocess.inc
with parameters: "Array ( [credit_card_type] => MasterCard [credit_card_number]
=> xxxxxxxxxxxx [cvv2] => 3...
A previous log message says
User deprecated function: Deprecated function ::civicrm_api3_contribution_transact,
use The contibution.transact api is unsupported & known to have issues. Please see
the section at the bottom of https://docs.civicrm.org/dev/en/latest/financial/OrderAPI/
for getting off it.
This legacy civicrm extension solves the problem for com.donordepot.authnetecheck:
https://civicrm.org/extensions/contribution-transact-api
but from what I read it only supports a small subset of transactions.
Also, that's all very legacy and bound to fall over at any moment. The contribution.transact api was removed from webform_civicrm for drupal versions 8.x.5.x and up (I think), but it never got removed for Drupal7:
And now we're stuck with the same issue for Backdrop...