-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev snapshot (some notes added for void support).
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* A transaction can be voided before it is transferredby the financial | ||
* merchant, usually at midnight the day the transaction was captured, | ||
* or anytime before it is captured. | ||
* If the payment is just authorised, then it can be voided givem just | ||
* the orderNumber. This is the "approveReversal" command. | ||
* Once captured (and before tranferred by the financial institution) | ||
* it can be voided using the "depositReversal" command. This command | ||
* needs both the orderNumber and the paymentNumber. | ||
* Note this also means that a transaction with multiple payment parts | ||
* can have just some parts voided. | ||
* After that, to undo the transaction a refund must be issued. | ||
*/ | ||
|
||
|
||
//BackendVoidRequest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace Omnipay\Wirecard\Message; | ||
|
||
use Omnipay\Tests\TestCase; | ||
|
||
class CheckoutPageAuthorizeRequestTest extends TestCase | ||
{ | ||
public function setUp() | ||
{ | ||
parent::setUp(); | ||
|
||
$this->request = new CheckoutPageAuthorizeRequest($this->getHttpClient(), $this->getHttpRequest()); | ||
|
||
$this->request->initialize( | ||
array( | ||
'amount' => '12.00', | ||
'currency' => 'GBP', | ||
'card' => $this->getValidCard(), | ||
) | ||
); | ||
} | ||
|
||
/** | ||
* A placeholder for some tests, when I have time... | ||
*/ | ||
public function testNoop() | ||
{ | ||
$this->assertSame(true, true); | ||
} | ||
} |