-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Elavarasan Nataranjan
committed
Aug 22, 2019
1 parent
4801288
commit 0e57bec
Showing
21 changed files
with
478 additions
and
38 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
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
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,41 @@ | ||
<?php | ||
/** | ||
* @copyright 2017 Sapient | ||
*/ | ||
namespace Sapient\Worldpay\Model\Token; | ||
|
||
use Sapient\Worldpay\Model\SavedToken; | ||
/** | ||
* read from WP's token update response | ||
*/ | ||
class InquiryXml implements UpdateInterface | ||
{ | ||
/** | ||
* @var SimpleXMLElement | ||
*/ | ||
private $_xml; | ||
|
||
/** | ||
* @param SimpleXMLElement $xml | ||
*/ | ||
public function __construct(\SimpleXMLElement $xml) | ||
{ | ||
$this->_xml = $xml; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getTokenCode() | ||
{ | ||
return (string)$this->_xml->reply->token->tokenDetails->paymentTokenID; | ||
} | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function isSuccess() | ||
{ | ||
return (string)$this->_xml->reply->token->paymentInstrument->cardDetails->derived->bin; | ||
} | ||
} |
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
Oops, something went wrong.