File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,6 @@ public function getRedirectUrl() {
430
430
'currency ' => $ currency ,
431
431
'editable_by_user ' => $ editableByUser ,
432
432
'customer_email ' => $ order ->getCustomerEmail (),
433
- 'customer_phone ' => $ billing ->getTelephone (),
434
433
'notification_url ' => Mage::getUrl ('bit-hypercharge/wpfnotification/wpf ' , array ('_secure ' => true )),
435
434
'return_success_url ' => Mage::getUrl ('bit-hypercharge/wpfredirect/success ' , array ('_secure ' => true )),
436
435
'return_failure_url ' => Mage::getUrl ('bit-hypercharge/wpfredirect/failure ' , array ('_secure ' => true )),
@@ -453,6 +452,10 @@ public function getRedirectUrl() {
453
452
),
454
453
);
455
454
455
+ if ($ billing ->getTelephone ()) {
456
+ $ paymentData ['customer_phone ' ] = $ billing ->getTelephone ();
457
+ }
458
+
456
459
$ paymentData ['transaction_types ' ] = array (
457
460
'transaction_type ' => $ modelPayment ->getTransactionType ()
458
461
);
Original file line number Diff line number Diff line change @@ -131,7 +131,6 @@ public function initialize($paymentAction, $stateObject)
131
131
, 'transaction_id ' => $ order ->getRealOrderId () //uniqid(time())
132
132
, 'usage ' => Mage::app ()->getStore ()->getName () . ' order authorization '
133
133
, 'customer_email ' => $ order ->getCustomerEmail ()
134
- , 'customer_phone ' => $ billing ->getTelephone ()
135
134
, 'notification_url ' => Mage::getUrl ('bit-hypercharge/notification/response ' , array ('_secure ' => true ))
136
135
, 'billing_address ' => array (
137
136
'first_name ' => $ billing ->getFirstname ()
@@ -143,6 +142,10 @@ public function initialize($paymentAction, $stateObject)
143
142
)
144
143
);
145
144
145
+ if ($ billing ->getTelephone ()) {
146
+ $ paymentData ['customer_phone ' ] = $ billing ->getTelephone ();
147
+ }
148
+
146
149
$ transactionType = $ modelPayment ->_jsonTransactionType ;
147
150
if (isset ($ transactionType ) && $ transactionType != '' ) {
148
151
$ paymentData ['transaction_types ' ] = array ('transaction_type ' => $ transactionType );
Original file line number Diff line number Diff line change 28
28
<config >
29
29
<modules >
30
30
<GlobalExperts_Hypercharge >
31
- <version >1.1.14 </version >
31
+ <version >1.1.12 </version >
32
32
</GlobalExperts_Hypercharge >
33
33
</modules >
34
34
You can’t perform that action at this time.
0 commit comments