Skip to content

Commit

Permalink
Dev snapshot (some notes added for void support).
Browse files Browse the repository at this point in the history
  • Loading branch information
judgej committed May 21, 2017
1 parent 8e7f296 commit 5c41e84
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ This driver does not look at the IP address.
* 185.60.56.35
* 185.60.56.36

The notificatino handler will send the same data as the front-end returns
The notification handler will send the same data as the front-end returns
to the merchant site with the user. It will include some additional
security-sensitive details that cannot be exposed to the user.

The notification handler does not need to respond to the notification
in any special way other than by returning a HTTP 200 code.
This driver leaves the merchant site to exit after procssing the result.
This driver leaves the merchant site to exit after processing the result.

18 changes: 18 additions & 0 deletions src/Message/BackendVoidRequest.php
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
31 changes: 31 additions & 0 deletions test/Message/CheckoutPageAuthorizeRequestTest.php
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);
}
}

0 comments on commit 5c41e84

Please sign in to comment.