Skip to content

Commit

Permalink
Suppression de abortTransaction
Browse files Browse the repository at this point in the history
Si on ne peut pas le propager à Payline, il ne faut pas le faire, c'est trop galère à gérer pour nous
  • Loading branch information
apuyou committed Nov 3, 2013
1 parent 2e4e2e6 commit 385053e
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/Payutc/Service/WEBSALE.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,34 +92,4 @@ public function getTransactionInfo($fun_id, $tra_id) {
"created" => $transaction->getDate()
);
}

/**
* Fonction pour annuler une transaction
*
* @param int $fun_id (check de la fundation)
* @param int $tra_id (id de la transaction a checker)
* @return array
*/
public function abortTransaction($fun_id, $tra_id) {
// On a une appli qui a les droits ?
$this->checkRight(false, true, true, $fun_id);

// Get info on this transaction
$transaction = Transaction::getById($tra_id);

// Check fun_id is correct
if($fun_id != $transaction->getFunId()) {
throw new TransactionNotFound("La transaction $tra_id n'existe pas");
}

$transaction->abort();

return array(
"id" => $tra_id,
"status" => $transaction->getStatus(),
"purchases" => $transaction->getPurchases(),
"created" => $transaction->getDate()
);
}

}

0 comments on commit 385053e

Please sign in to comment.