I am running Drupal 7.52 with CiviCRM 4.7.30 and version 4.0.0 of the sagepay extension.
The contribution page I am using allows submission on behalf of an organisation. This causes this error:
"Missing name field(s).
I have added a few lines to hack around this with the following:
if ($contact['contact_type'] != 'Individual') { $cid = CRM_Core_Session::singleton()->getLoggedInContactID(); $contact = civicrm_api3("Contact", "getsingle", [ 'version' => '3', 'contact_id' => $cid ]); }
Another error occurred after this:
3013 : The Description is missing
I have hard-coded the item description for this particular site, but could you suggest how to fix it?
The contribution page now takes me to SagePay to enter my card details, but as I don't currently have any test details I can't actually test it right now. I'll post an update when I get the chance to!
Thanks.
I am running Drupal 7.52 with CiviCRM 4.7.30 and version 4.0.0 of the sagepay extension.
The contribution page I am using allows submission on behalf of an organisation. This causes this error:
I have added a few lines to hack around this with the following:
if ($contact['contact_type'] != 'Individual') { $cid = CRM_Core_Session::singleton()->getLoggedInContactID(); $contact = civicrm_api3("Contact", "getsingle", [ 'version' => '3', 'contact_id' => $cid ]); }Another error occurred after this:
I have hard-coded the item description for this particular site, but could you suggest how to fix it?
The contribution page now takes me to SagePay to enter my card details, but as I don't currently have any test details I can't actually test it right now. I'll post an update when I get the chance to!
Thanks.