Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -12,7 +12,7 @@
|
||||
namespace IPS\nexus\Fraud\MaxMind;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -147,13 +147,15 @@ class _Request
|
||||
/**
|
||||
* Set Credit Card
|
||||
*
|
||||
* @param string $card The card number
|
||||
* @param \IPS\nexus\CreditCard|string $card The card number
|
||||
* @return void
|
||||
*/
|
||||
public function setCard( \IPS\nexus\CreditCard $card )
|
||||
public function setCard( $card )
|
||||
{
|
||||
$this->data['txn_type'] = 'creditcard';
|
||||
$this->data['bin'] = mb_substr( $card->number, 0, 6 );
|
||||
|
||||
$cardNumber = ( $card instanceof \IPS\nexus\CreditCard ) ? $card->number : $card;
|
||||
$this->data['bin'] = mb_substr( $cardNumber, 0, 6 );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -177,6 +179,17 @@ class _Request
|
||||
{
|
||||
$this->data['avs_result'] = $code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set CVV Result
|
||||
*
|
||||
* @param bool $result CVV check result (boolean only - do not provide actual code)
|
||||
* @return void
|
||||
*/
|
||||
public function setCVV( $result )
|
||||
{
|
||||
$this->data['cvv_result'] = $result ? 'Y' : 'N';
|
||||
}
|
||||
|
||||
/**
|
||||
* Make Request
|
||||
|
||||
Reference in new issue
Block a user