Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* @brief Customer Stored Card Model
|
||||
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
|
||||
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/legal/standards/
|
||||
* @package IPS Social Suite
|
||||
* @package IPS Community Suite
|
||||
* @subpackage Nexus
|
||||
* @since 12 Mar 2014
|
||||
* @version SVN_VERSION_NUMBER
|
||||
@@ -56,11 +56,15 @@ class _CreditCard extends \IPS\Patterns\ActiveRecord
|
||||
$obj->_new = FALSE;
|
||||
|
||||
/* Import data */
|
||||
if ( static::$databasePrefix )
|
||||
{
|
||||
$databasePrefixLength = \strlen( static::$databasePrefix );
|
||||
}
|
||||
foreach ( $data as $k => $v )
|
||||
{
|
||||
if( static::$databasePrefix AND mb_strpos( $k, static::$databasePrefix ) === 0 )
|
||||
{
|
||||
$k = \substr( $k, \strlen( static::$databasePrefix ) );
|
||||
$k = \substr( $k, $databasePrefixLength );
|
||||
}
|
||||
|
||||
$obj->_data[ $k ] = $v;
|
||||
@@ -93,7 +97,7 @@ class _CreditCard extends \IPS\Patterns\ActiveRecord
|
||||
foreach ( $gateways as $gateway )
|
||||
{
|
||||
$invoice = new \IPS\nexus\Invoice;
|
||||
foreach ( $gateway->paymentScreen( $invoice, $invoice->total ) as $element )
|
||||
foreach ( $gateway->paymentScreen( $invoice, $invoice->total, $customer ) as $element )
|
||||
{
|
||||
if ( !$element->htmlId )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user