@@ -78,6 +78,7 @@ public function __construct(
78
78
79
79
/**
80
80
* @param quote $quote
81
+ * @param array $params
81
82
* @return void
82
83
* @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing
83
84
*/
@@ -131,7 +132,7 @@ private function quoteSetDummyData($quote, $params)
131
132
throw new \Exception ('Shipping method not availeble ' , FastCheckoutStart::FC_ESITMATE_ERROR );
132
133
}
133
134
}
134
- if (isset ($ params ['selected_estimate_shipping ' ]) && !empty ($ params ['selected_estimate_shipping ' ]) && !empty ($ shippingMethodsAvaileble [$ params ['selected_estimate_shipping ' ]]) && $ store ->getConfig ('payment/paynl_payment_ideal/fast_checkout_use_estimate_selection ' ) > 0 ) {
135
+ if (isset ($ params ['selected_estimate_shipping ' ]) && !empty ($ params ['selected_estimate_shipping ' ]) && !empty ($ shippingMethodsAvaileble [$ params ['selected_estimate_shipping ' ]]) && $ store ->getConfig ('payment/paynl_payment_ideal/fast_checkout_use_estimate_selection ' ) > 0 ) { // phpcs:ignore
135
136
$ shippingMethod = $ params ['selected_estimate_shipping ' ];
136
137
} elseif (!empty ($ shippingMethodsAvaileble [$ store ->getConfig ('payment/paynl_payment_ideal/fast_checkout_shipping ' )])) {
137
138
$ shippingMethod = $ store ->getConfig ('payment/paynl_payment_ideal/fast_checkout_shipping ' );
@@ -187,9 +188,7 @@ private function getProducts()
187
188
}
188
189
189
190
/**
190
- * @param quote $quote
191
191
* @return void
192
- * @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing
193
192
*/
194
193
public function cacheShippingMethods ()
195
194
{
@@ -227,7 +226,7 @@ public function execute()
227
226
}
228
227
}
229
228
230
- if (empty ($ store ->getConfig ('payment/paynl_payment_ideal/fast_checkout_shipping ' )) && (!isset ($ params ['fallbackShippingMethod ' ]) || empty ($ params ['fallbackShippingMethod ' ])) && (!isset ($ params ['selected_estimate_shipping ' ]) || empty ($ params ['selected_estimate_shipping ' ]))) {
229
+ if (empty ($ store ->getConfig ('payment/paynl_payment_ideal/fast_checkout_shipping ' )) && (!isset ($ params ['fallbackShippingMethod ' ]) || empty ($ params ['fallbackShippingMethod ' ])) && (!isset ($ params ['selected_estimate_shipping ' ]) || empty ($ params ['selected_estimate_shipping ' ]))) { // phpcs:ignore
231
230
throw new \Exception ('No shipping method selected ' , FastCheckoutStart::FC_SHIPPING_ERROR );
232
231
}
233
232
0 commit comments