PluginProbe
Pay with Vipps and MobilePay for WooCommerce / 6.2.5
Pay with Vipps and MobilePay for WooCommerce v6.2.5
6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.10 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.4.3 5.4.2 All 187 releases
← All changes | payment/VippsApi.class.php +3 -2 6.2.3 → 6.2.5 View file →
@@ -927,11 +927,12 @@
927 927 // Should return a map from other_method => ['gw'=>'gateway key or any or empty string]
928 928 $other_payment_methods = apply_filters('woo_vipps_checkout_external_payment_methods', VippsCheckout::instance()->external_payment_methods(), $order);
929 929 if (!empty($other_payment_methods)) {
930 930 $others = [];
931 + $cb = wp_create_nonce('vipps_gw_' . $orderid);
931 932 foreach ($other_payment_methods as $methodkey => $methoddata) {
932 933 $chooseanother = ['action'=>'vipps_gw', 'o'=>$orderid];
933 - $chooseanother['cb'] = wp_create_nonce('vipps_gw');
934 + $chooseanother['cb'] = $cb;
934 935 $chooseanother['gw'] = ($methoddata['gw'] ?? "");
935 936 $others[] = ['paymentMethod' => $methodkey, 'redirectUrl'=> add_query_arg($chooseanother,admin_url("admin-post.php")) ];
936 937 }
937 938 if (!empty($others)) {
@@ -1271,9 +1272,9 @@
1271 1272 return $this->call_qr_merchant_redirect($action, $id, $url);
1272 1273 }
1273 1274 public function delete_merchant_redirect_qr ($id) {
1274 1275 $action = "DELETE";
1275 - return $this->call_qr_merchant_redirect($action, $id, $url);
1276 + return $this->call_qr_merchant_redirect($action, $id);
1276 1277 }
1277 1278 private function call_qr_merchant_redirect($action, $id, $url=null, $accept='image/svg+xml') {
1278 1279 $command = 'qr/v1/merchant-redirect/';
1279 1280 if ($action != "POST") $command .= $id;