File tree 7 files changed +23
-10
lines changed
lib/internal/Magento/Framework
7 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ protected function _postBack()
82
82
{
83
83
$ httpAdapter = $ this ->_curlFactory ->create ();
84
84
$ postbackQuery = http_build_query ($ this ->getRequestData ()) . '&cmd=_notify-validate ' ;
85
- $ postbackUrl = $ this ->_config ->getPaypalUrl ();
85
+ $ postbackUrl = $ this ->_config ->getPayPalIpnUrl ();
86
86
$ this ->_addDebugData ('postback_to ' , $ postbackUrl );
87
87
88
88
$ httpAdapter ->setConfig (['verifypeer ' => $ this ->_config ->getValue ('verifyPeer ' )]);
Original file line number Diff line number Diff line change 11
11
/**
12
12
* Config model that is aware of all \Magento\Paypal payment methods
13
13
* Works with PayPal-specific system configuration
14
- * @SuppressWarnings(PHPMD.ExcesivePublicCount )
14
+ * @SuppressWarnings(PHPMD.ExcessivePublicCount )
15
15
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
16
16
*/
17
17
class Config extends AbstractConfig
@@ -918,6 +918,19 @@ public function getPaypalUrl(array $params = [])
918
918
);
919
919
}
920
920
921
+ /**
922
+ * PayPal web URL for IPN
923
+ *
924
+ * @return string
925
+ */
926
+ public function getPayPalIpnUrl ()
927
+ {
928
+ return sprintf (
929
+ 'https://ipnpb.%spaypal.com/cgi-bin/webscr ' ,
930
+ $ this ->getValue ('sandboxFlag ' ) ? 'sandbox. ' : ''
931
+ );
932
+ }
933
+
921
934
/**
922
935
* Whether Express Checkout button should be rendered dynamically
923
936
*
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ protected function setUp()
78
78
$ configMock ->expects ($ this ->any ())->method ('isMethodActive ' )->will ($ this ->returnValue (true ));
79
79
$ configMock ->expects ($ this ->any ())->method ('isMethodAvailable ' )->will ($ this ->returnValue (true ));
80
80
$ configMock ->expects ($ this ->any ())->method ('getValue ' )->will ($ this ->returnValue (null ));
81
- $ configMock ->expects ($ this ->any ())->method ('getPaypalUrl ' )
82
- ->will ($ this ->returnValue ('http ://paypal_url ' ));
81
+ $ configMock ->expects ($ this ->any ())->method ('getPayPalIpnUrl ' )
82
+ ->will ($ this ->returnValue ('https ://ipnpb_paypal_url ' ));
83
83
84
84
$ this ->curlFactory = $ this ->getMock (
85
85
'Magento\Framework\HTTP\Adapter\CurlFactory ' ,
Original file line number Diff line number Diff line change 24
24
"magento/module-checkout-agreements" : " 100.0.*"
25
25
},
26
26
"type" : " magento2-module" ,
27
- "version" : " 100.0.9 " ,
27
+ "version" : " 100.0.10 " ,
28
28
"license" : [
29
29
" proprietary"
30
30
],
Original file line number Diff line number Diff line change 134
134
"magento/module-offline-shipping" : " 100.0.6" ,
135
135
"magento/module-page-cache" : " 100.0.8" ,
136
136
"magento/module-payment" : " 100.0.11" ,
137
- "magento/module-paypal" : " 100.0.9 " ,
137
+ "magento/module-paypal" : " 100.0.10 " ,
138
138
"magento/module-persistent" : " 100.0.6" ,
139
139
"magento/module-product-alert" : " 100.0.7" ,
140
140
"magento/module-product-video" : " 100.0.9" ,
182
182
"magento/language-nl_nl" : " 100.0.6" ,
183
183
"magento/language-pt_br" : " 100.0.6" ,
184
184
"magento/language-zh_hans_cn" : " 100.0.6" ,
185
- "magento/framework" : " 100.0.16 " ,
185
+ "magento/framework" : " 100.0.17 " ,
186
186
"trentrichardson/jquery-timepicker-addon" : " 1.4.3" ,
187
187
"colinmollenhour/cache-backend-redis" : " 1.8" ,
188
188
"components/jquery" : " 1.11.0" ,
Original file line number Diff line number Diff line change 2
2
"name" : " magento/framework" ,
3
3
"description" : " N/A" ,
4
4
"type" : " magento2-library" ,
5
- "version" : " 100.0.16 " ,
5
+ "version" : " 100.0.17 " ,
6
6
"license" : [
7
7
" OSL-3.0" ,
8
8
" AFL-3.0"
You can’t perform that action at this time.
0 commit comments