define('GOOGLE_DEBUG_PP', 0);
+
+/**
+ * Class CRM_Core_Payment_GoogleIPN
+ */
class CRM_Core_Payment_GoogleIPN extends CRM_Core_Payment_BaseIPN {
/**
static private $_singleton = NULL;
/**
- * mode of operation: live or test
+ * Mode of operation: live or test
*
* @var object
*/
protected $_mode = NULL;
+ /**
+ * @param string $name
+ * @param $type
+ * @param $object
+ * @param bool $abort
+ *
+ * @return mixed
+ */
static function retrieve($name, $type, $object, $abort = TRUE) {
$value = CRM_Utils_Array::value($name, $object);
if ($abort && $value === NULL) {
}
}
- // CRM_Core_Error::debug_var( 'c', $contribution );
$contribution->save();
$transaction->commit();
$transaction = new CRM_Core_Transaction();
- // CRM_Core_Error::debug_var( 'c', $contribution );
if ($status == 'PAYMENT_DECLINED' ||
$status == 'CANCELLED_BY_GOOGLE' ||
$status == 'CANCELLED'
$this->completeRecur($input, $ids, $objects);
}
+ /**
+ * @param $input
+ * @param $ids
+ * @param $objects
+ */
function completeRecur($input, $ids, $objects) {
if ($ids['contributionRecur']) {
$recur = &$objects['contributionRecur'];
}
/**
- * singleton function used to manage this object
+ * Singleton function used to manage this object
*
* @param string $mode the mode of operation: live or test
*
+ * @param $component
+ * @param $paymentProcessor
+ *
* @return object
* @static
*/
/**
* The function returns the component(Event/Contribute..), given the google-order-no and merchant-private-data
*
- * @param xml $xml_response response send by google in xml format
- * @param array $privateData contains the name value pair of <merchant-private-data>
- * @param int $orderNo <order-total> send by google
- * @param string $root root of xml-response
+ * @param array $privateData contains the name value pair of <merchant-private-data>
+ * @param int $orderNo <order-total> send by google
+ * @param string $root root of xml-response
*
+ * @param $response
+ * @param $serial
+ * @internal param \xml $xml_response response send by google in xml format
* @return array context of this call (test, module, payment processor id)
* @static
*/
}
}
+ /**
+ * @param $input
+ * @param $ids
+ * @param $dataRoot
+ *
+ * @return bool
+ */
function getInput(&$input, &$ids, $dataRoot) {
if (!$this->getBillingID($ids)) {
return FALSE;