I am using postgresql and startTransaction() etc has been renamed transactionStart() etc on trunk for consistency purposes. I have fixed and have a diff patch for the payment module. I can't seem to upload it as an attachment here. Does anyone want it? inline.....
Index: code/DPSPayment/DPSAdapter.php
===================================================================
--- code/DPSPayment/DPSAdapter.php (revision 115626)
+++ code/DPSPayment/DPSAdapter.php (working copy)
@@ -576,7 +576,7 @@
$xml = new SimpleXMLElement($request_string);
$urls = $xml->xpath('//URI');
$url = $urls[0].'';
- DB::getConn()->endTransaction();
+ DB::getConn()->transactionEnd();
if(self::$mode == "Unit_Test_Only"){
return $url;
}else{
@@ -617,7 +617,7 @@
}
if($payment) {
- DB::getConn()->startTransaction();
+ DB::getConn()->transactionStart();
try{
$payment->ResponseXML = $rsp->toXml();
$success = $rsp->getSuccess();
@@ -631,7 +631,7 @@
}
$payment->Message=$rsp->getResponseText();
$payment->write();
- DB::getConn()->endTransaction();
+ DB::getConn()->transactionEnd();
}catch(Exception $e){
DB::getConn()->transactionRollback();
$payment->handleError($e);
Index: code/DPSPayment/DPSPayment.php
===================================================================
--- code/DPSPayment/DPSPayment.php (revision 115626)
+++ code/DPSPayment/DPSPayment.php (working copy)
@@ -143,7 +143,7 @@
$adapter = new DPSAdapter();
$inputs = $this->prepareAuthInputs($data);
$adapter->doPayment($inputs, $this);
- DB::getConn()->endTransaction();
+ DB::getConn()->transactionEnd();
}catch(Exception $e){
DB::getConn()->transactionRollback();
$this->handleError($e);
@@ -168,7 +168,7 @@
}
function complete(){
- DB::getConn()->startTransaction();
+ DB::getConn()->transactionStart();
try{
$auth = $this->AuthPayment();
$this->TxnType = "Complete";
@@ -178,7 +178,7 @@
$adapter = new DPSAdapter();
$inputs = $this->prepareCompleteInputs();
$adapter->doPayment($inputs, $this);
- DB::getConn()->endTransaction();
+ DB::getConn()->transactionEnd();
}catch(Exception $e){
DB::getConn()->transactionRollback();
$this->handleError($e);
@@ -241,7 +241,7 @@
}
function dpshostedPurchase($data){
- DB::getConn()->startTransaction();
+ DB::getConn()->transactionStart();
try{
$this->TxnType = "Purchase";
$this->write();
Index: code/DPSPayment/DPSRecurringPayment.php
===================================================================
--- code/DPSPayment/DPSRecurringPayment.php (revision 115626)
+++ code/DPSPayment/DPSRecurringPayment.php (working copy)
@@ -77,7 +77,7 @@
}
function recurringAuth($data){
- DB::getConn()->startTransaction();
+ DB::getConn()->transactionStart();
try{
$this->TxnType = "Auth";
$this->AuthAmount = 1.00;
@@ -114,7 +114,7 @@
}
function merchantRecurringAuth($data){
- DB::getConn()->startTransaction();
+ DB::getConn()->transactionStart();
try{
$this->AuthAmount = 1.00;
$this->write();
@@ -122,7 +122,7 @@
$adapter = new DPSAdapter();
$inputs = $this->prepareMerchantHostedRecurringAuthInputs($data);
$adapter->doPayment($inputs, $this);
- DB::getConn()->endTransaction();
+ DB::getConn()->transactionEnd();
}catch(Exception $e){
DB::getConn()->transactionRollback();
$this->handleError($e);