From 5c41e84ccc05aab87c7bb14aef426b429cf94ab5 Mon Sep 17 00:00:00 2001 From: Jason Judge Date: Mon, 22 May 2017 00:00:08 +0100 Subject: [PATCH] Dev snapshot (some notes added for void support). --- README.md | 4 +-- src/Message/BackendVoidRequest.php | 18 +++++++++++ .../CheckoutPageAuthorizeRequestTest.php | 31 +++++++++++++++++++ 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 src/Message/BackendVoidRequest.php create mode 100644 test/Message/CheckoutPageAuthorizeRequestTest.php diff --git a/README.md b/README.md index 08da263..9e8b169 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/Message/BackendVoidRequest.php b/src/Message/BackendVoidRequest.php new file mode 100644 index 0000000..7da37b9 --- /dev/null +++ b/src/Message/BackendVoidRequest.php @@ -0,0 +1,18 @@ +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); + } +}