Skip to content

Commit

Permalink
Auth Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayali Bonde authored and Sayali Bonde committed Jun 24, 2019
1 parent 3e9a489 commit 6f90263
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 13 additions & 1 deletion source/Paysafe/CardPayments/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
* @property string $threeDEnrollment
* @property string $threeDResult
* @property string $signatureStatus
* @property string $threeDSecureVersion
* @property string $directoryServerTransactionId
*
*/
class Authentication extends \Paysafe\JSONObject
{
Expand All @@ -35,8 +38,17 @@ class Authentication extends \Paysafe\JSONObject
'cavv' => 'string',
'xid' => 'string',
'threeDEnrollment' => 'string',
'threeDResult' => 'string',
'threeDResult' => array(
'Y',
'A',
'N',
'U',
'E',
'R'
),
'signatureStatus' => 'string',
'threeDSecureVersion'=>'string',
'directoryServerTransactionId'=>'string'
);

}
4 changes: 3 additions & 1 deletion tests/paysafe/CardPayments/AuthorizationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ public function testAllFieldsValidValues()
'cavv' => 'cavv', // string
'xid' => 'xid', // string
'threeDEnrollment' => 'threeDEnrollment', // string
'threeDResult' => 'threeDResult', // string
'threeDResult' => 'Y', //enum
'signatureStatus' => 'string', // string
'threeDSecureVersion'=>'string', //string
'directoryServerTransactionId'=>'string', //string
];
$authCode = 'authCode'; // string
// $profile should be an array acceptable to the Paysafe\CardPayments\Profile constructor
Expand Down

0 comments on commit 6f90263

Please sign in to comment.