diff --git a/frontend/payments/classes/class.UserNarocilaPaypal.php b/frontend/payments/classes/class.UserNarocilaPaypal.php index 85906d6c0..7053f700a 100644 --- a/frontend/payments/classes/class.UserNarocilaPaypal.php +++ b/frontend/payments/classes/class.UserNarocilaPaypal.php @@ -168,7 +168,7 @@ class UserNarocilaPaypal{ // Dobimo link za preusmeritev stranke, da potrdi narocilo in potem lahko izvedemo "capture" foreach($paypal_response->result->links as $link){ - if($link->rel == 'capture') + if($link->rel == 'approve') $response['paypal_link'] = $link->href; } } diff --git a/sql/update2.sql b/sql/update2.sql index d3dcf97af..9bd384b8d 100644 --- a/sql/update2.sql +++ b/sql/update2.sql @@ -9286,16 +9286,16 @@ UPDATE misc SET value='20.08.10' WHERE what="version"; ## Tabela placil preko paypala CREATE TABLE user_access_paypal_transaction( - id int(11) NOT NULL auto_increment, - transaction_id int(11) NOT NULL DEFAULT 0, - narocilo_id int(11) NOT NULL DEFAULT 0, - price DECIMAL(7,2) NOT NULL DEFAULT '0', - currency_type VARCHAR(100) NOT NULL DEFAULT '', - time DATETIME(3) NOT NULL, - status VARCHAR(30) NOT NULL DEFAULT '', - PRIMARY KEY (id), - UNIQUE KEY (transaction_id), - UNIQUE KEY (narocilo_id) + id int(11) NOT NULL auto_increment, + transaction_id int(11) NOT NULL DEFAULT 0, + narocilo_id int(11) NOT NULL DEFAULT 0, + price DECIMAL(7,2) NOT NULL DEFAULT '0', + currency_type VARCHAR(100) NOT NULL DEFAULT '', + time DATETIME(3) NOT NULL, + status VARCHAR(30) NOT NULL DEFAULT '', + PRIMARY KEY (id), + UNIQUE KEY (transaction_id), + UNIQUE KEY (narocilo_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; UPDATE misc SET value='20.09.07' WHERE what="version";