| @@ -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; |