| 1 |
<?php |
<?php |
| 2 |
// $Id: crmngp_cwp.inc,v 1.10.2.12 2009/07/21 17:13:09 seanr Exp $ |
// $Id: crmngp_cwp.inc,v 1.10.2.13 2009/11/19 18:58:27 seanr Exp $ |
| 3 |
|
|
| 4 |
//save a cwp contribute Transaction |
//save a cwp contribute Transaction |
| 5 |
function crmngp_cwp_transaction_save($contribution = NULL, $full_response = FALSE) { |
function crmngp_cwp_transaction_save($contribution = NULL, $full_response = FALSE) { |
| 156 |
if (!in_array($type, _crmngp_cwp_transaction_types())) { return NULL; } |
if (!in_array($type, _crmngp_cwp_transaction_types())) { return NULL; } |
| 157 |
if (!variable_get('crmngp_cwp_credentials', NULL)) { return NULL; } |
if (!variable_get('crmngp_cwp_credentials', NULL)) { return NULL; } |
| 158 |
|
|
| 159 |
include_once('./'.drupal_get_path('module', 'crmngp').'/lib/nusoap.php'); |
//include_once('./'.drupal_get_path('module', 'crmngp').'/lib/nusoap.php'); |
| 160 |
|
|
| 161 |
$params = array( |
$params = array( |
| 162 |
'credentials' => variable_get('crmngp_cwp_credentials', NULL), |
'credentials' => variable_get('crmngp_cwp_credentials', NULL), |