Skip to content

Commit

Permalink
updates to payment handler interface
Browse files Browse the repository at this point in the history
  • Loading branch information
iampersistent committed Mar 19, 2013
1 parent 820769f commit 87aad05
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions lib/Vespolina/Payment/Handler/PaymentHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Vespolina\Payment\Handler;


use Vespolina\Entity\Partner\PaymentProfileInterface;
use Vespolina\Entity\Payment\PaymentRequestInterface;

Expand All @@ -20,12 +19,35 @@ function authorize(PaymentProfileInterface $profile);
* @param PaymentRequestInterface $paymentRequest
* @return \Vespolina\Entity\Payment\TransactionInterface
*/
function refund(PaymentRequestInterface $paymentRequest);
function completeAuthorize(PaymentProfileInterface $profile);

/**
* @param PaymentRequestInterface $paymentRequest
* @return \Vespolina\Entity\Payment\TransactionInterface
*/
function capture(PaymentProfileInterface $profile);

/**
* @param PaymentRequestInterface $paymentRequest
* @return \Vespolina\Entity\Payment\TransactionInterface
*/
function purchase(PaymentRequestInterface $paymentRequest);

/**
* @param PaymentRequestInterface $paymentRequest
* @return \Vespolina\Entity\Payment\TransactionInterface
*/
function request(PaymentRequestInterface $paymentRequest);
function completePurchase(PaymentRequestInterface $paymentRequest);

/**
* @param PaymentRequestInterface $paymentRequest
* @return \Vespolina\Entity\Payment\TransactionInterface
*/
function refund(PaymentRequestInterface $paymentRequest);

/**
* @param PaymentRequestInterface $paymentRequest
* @return \Vespolina\Entity\Payment\TransactionInterface
*/
function void(PaymentRequestInterface $paymentRequest);
}

0 comments on commit 87aad05

Please sign in to comment.