Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
P
php-stpp
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common
php-stpp
Commits
3a2417cc
Commit
3a2417cc
authored
Jan 28, 2014
by
David Weston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added __set and __unset to the master object
parent
3df22172
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
39 additions
and
9 deletions
+39
-9
objects/stppaddressableobject.php
objects/stppaddressableobject.php
+1
-1
objects/stppbilling.php
objects/stppbilling.php
+1
-1
objects/stppcustomer.php
objects/stppcustomer.php
+1
-1
objects/stppmerchant.php
objects/stppmerchant.php
+1
-1
objects/stppobject.php
objects/stppobject.php
+1
-1
objects/stppoperation.php
objects/stppoperation.php
+1
-1
objects/stppresponse.php
objects/stppresponse.php
+1
-1
objects/stppsettlement.php
objects/stppsettlement.php
+1
-1
stapi.php
stapi.php
+31
-1
No files found.
objects/stppaddressableobject.php
View file @
3a2417cc
...
...
@@ -6,7 +6,7 @@
* quite a lot of functionality is shared between billing and customers, for
* example.
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
objects/stppbilling.php
View file @
3a2417cc
...
...
@@ -7,7 +7,7 @@
* this class matches the name registered on the card. Addresses
* are also key.
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
objects/stppcustomer.php
View file @
3a2417cc
...
...
@@ -10,7 +10,7 @@
* no real need to fill in anything like addresses and such - however there
* /is/ a recommendation from ST to do so.
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
objects/stppmerchant.php
View file @
3a2417cc
...
...
@@ -10,7 +10,7 @@
* it is a required feature for 3D-Secure, which most if not all
* transactions should be performed using (if available).
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
objects/stppobject.php
View file @
3a2417cc
...
...
@@ -5,7 +5,7 @@
* This is the god object for all parts of the request, such as
* the merchant, operations and such.
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
objects/stppoperation.php
View file @
3a2417cc
...
...
@@ -5,7 +5,7 @@
* The operation object contains some other information that is needed
* to complete the request.
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
objects/stppresponse.php
View file @
3a2417cc
...
...
@@ -9,7 +9,7 @@
* give the XML response as the argument to the constructor and all will be
* revealed.
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
objects/stppsettlement.php
View file @
3a2417cc
...
...
@@ -4,7 +4,7 @@
*
* This is the object that represents updated settlement details.
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
stapi.php
View file @
3a2417cc
...
...
@@ -6,7 +6,7 @@
* to a setup, however, it'll allow you to with ease create
* and maintain a new contract with a SecureTrading node.
*
* @version:
untested
* @version:
1.0-beta
* @author: David Weston <stpp@typefish.co.uk>
*/
...
...
@@ -332,6 +332,36 @@ class STAPI
}
/**
* Some __set abuse - pretty much shorthand for the set?
* methods.
*/
public
function
__set
(
$property
,
$value
)
{
$caller
=
"set"
.
ucfirst
(
$property
);
if
(
!
method_exists
(
$this
,
$caller
))
return
null
;
return
$this
->
$caller
(
$value
);
}
/**
* Some __unset abuse - pretty much shorthand for the reset?
* methods.
*/
public
function
__unset
(
$property
)
{
$caller
=
"reset"
.
ucfirst
(
$property
);
if
(
!
method_exists
(
$this
,
$caller
))
return
null
;
return
$this
->
$caller
(
$value
);
}
/**
* Used to push a request off to the SecureTrading endpoint.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment