array( 'name' => t('Test 1'), 'description' => t('Payment Gateway to allow the testing of e-Commerce'), 'module' => array('ec_receipt_test_payment'), 'currencies_supported' => array('USD'), 'allow_payments' => TRUE, ), 'test2' => array( 'name' => t('Test 2'), 'description' => t('Payment Gateway to allow the testing of e-Commerce'), 'module' => array('ec_receipt_test_payment'), 'currencies_supported' => array('USD'), 'allow_payments' => TRUE, ), ); } /** * @todo Please document this function. * @see http://drupal.org/node/1354 */ function ec_receipt_test_payment_receipt_process_payment($receipt, $atype, $object) { $receipt->status = RECEIPT_STATUS_COMPLETED; ec_receipt_save($receipt); return $receipt->erid; }