Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -266,7 +266,7 @@ class _PayPal extends \IPS\nexus\Gateway
|
||||
$settings = json_decode( $this->settings, TRUE );
|
||||
if ( $settings['type'] === 'card' )
|
||||
{
|
||||
return array( 'card' => new \IPS\nexus\Form\CreditCard( $this->id . '_card', NULL, FALSE, array(
|
||||
return array( 'card' => new \IPS\nexus\Form\CreditCard( $this->id . '_card', NULL, TRUE, array(
|
||||
'types' => array( \IPS\nexus\CreditCard::TYPE_VISA, \IPS\nexus\CreditCard::TYPE_MASTERCARD, \IPS\nexus\CreditCard::TYPE_DISCOVER, \IPS\nexus\CreditCard::TYPE_AMERICAN_EXPRESS ),
|
||||
'save' => $settings['vault'] ? $this : NULL,
|
||||
'member' => $member
|
||||
@@ -417,7 +417,7 @@ class _PayPal extends \IPS\nexus\Gateway
|
||||
$storedCard->card = $card;
|
||||
$storedCard->save();
|
||||
}
|
||||
catch ( \Exception $e ) { }
|
||||
catch ( \Exception $e ) { /* If there's any issue with saving (which may happen for a duplicate card) we can just carry on since we already auth'd */ }
|
||||
}
|
||||
|
||||
/* And return */
|
||||
@@ -1008,7 +1008,7 @@ class _PayPal extends \IPS\nexus\Gateway
|
||||
{
|
||||
$payPalTransactionData['item_list']['items'][] = array(
|
||||
'quantity' => $item->quantity,
|
||||
'name' => $item->name,
|
||||
'name' => mb_strlen( $item->name ) > 127 ? mb_substr( $item->name, 0, 124 ) . '...' : $item->name,
|
||||
'price' => $item->price->amountAsString(),
|
||||
'currency' => $transaction->amount->currency,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user