forked from Credit-Jeeves/paysafe_sdk_php
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for 'storedCredential' to the Authorization model for the
Card Payments API. Updating the card payment authorization test `testAllFieldsValidValues` for the new field.
- Loading branch information
James Meers
committed
Jun 18, 2018
1 parent
b3d4a78
commit 0aa6cee
Showing
4 changed files
with
33 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
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,25 @@ | ||
<?php | ||
/* | ||
* TODO insert appropriate copyright notice | ||
*/ | ||
|
||
namespace Paysafe\CardPayments; | ||
|
||
/** | ||
* @property string $type | ||
* @property number $occurrence | ||
*/ | ||
class StoredCredential extends \Paysafe\JSONObject | ||
{ | ||
protected static $fieldTypes = array( | ||
'type' => array( | ||
'ADHOC', | ||
'TOPUP', | ||
'RECURRING' | ||
), | ||
'occurrence' => array( | ||
'INITIAL', | ||
'SUBSEQUENT' | ||
) | ||
); | ||
} |
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