File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ class ServiceEndpoints extends Enum
1010 const GLOBAL_ECOM_TEST = "https://api.sandbox.realexpayments.com/epage-remote.cgi " ;
1111 const PORTICO_PRODUCTION = "https://api2.heartlandportico.com " ;
1212 const PORTICO_TEST = "https://cert.api2.heartlandportico.com " ;
13- const THREE_DS_AUTH_PRODUCTION = "https://authentications.realexpayments .com/3ds / " ;
14- const THREE_DS_AUTH_TEST = "https://authentications .sandbox.realexpayments .com/3ds / " ;
13+ const THREE_DS_AUTH_PRODUCTION = "https://api.globalpay-ecommerce .com/3ds2 / " ;
14+ const THREE_DS_AUTH_TEST = "https://api .sandbox.globalpay-ecommerce .com/3ds2 / " ;
1515 const PAYROLL_PRODUCTION = "https://taapi.heartlandpayrollonlinetest.com/PosWebUI " ;
1616 const PAYROLL_TEST = "https://taapi.heartlandpayrollonlinetest.com/PosWebUI/Test/Test " ;
1717 const TABLE_SERVICE_PRODUCTION = "https://www.freshtxt.com/api31/ " ;
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public function setMethodNotificationUrl($methodNotificationUrl)
7272
7373 protected function maybeSetKey (array $ arr , $ key , $ value = null )
7474 {
75- if ($ value != null ) {
75+ if (! is_null ( $ value) ) {
7676 $ arr [$ key ] = $ value ;
7777 }
7878 return $ arr ;
@@ -104,7 +104,7 @@ public function processSecure3d(Secure3dBuilder $builder)
104104 } elseif ($ paymentMethod instanceof RecurringPaymentMethod) {
105105 $ storedCard = $ paymentMethod ;
106106 $ request = $ this ->maybeSetKey ($ request , 'payer_reference ' , $ storedCard ->customerKey );
107- $ request = $ this ->maybeSetKey ($ request , 'payment_reference ' , $ storedCard ->key );
107+ $ request = $ this ->maybeSetKey ($ request , 'payment_method_reference ' , $ storedCard ->key );
108108 $ hashValue = $ storedCard ->customerKey ;
109109 }
110110
@@ -170,7 +170,7 @@ public function processSecure3d(Secure3dBuilder $builder)
170170 $ hashValue = $ storedCard ->customerKey ;
171171
172172 $ request ['card_detail ' ] = $ this ->maybeSetKey ($ request ['card_detail ' ], 'payer_reference ' , $ storedCard ->customerKey );
173- $ request ['card_detail ' ] = $ this ->maybeSetKey ($ request ['card_detail ' ], 'payment_reference ' , $ storedCard ->key );
173+ $ request ['card_detail ' ] = $ this ->maybeSetKey ($ request ['card_detail ' ], 'payment_method_reference ' , $ storedCard ->key );
174174 }
175175
176176 // order details
You can’t perform that action at this time.
0 commit comments