Drupal: Paypal popravki
This commit is contained in:
parent
df3d8970a6
commit
7588f3150e
@ -108,7 +108,7 @@ function nakupovanje_1ka_menu()
|
|||||||
];
|
];
|
||||||
|
|
||||||
// ENG povezave
|
// ENG povezave
|
||||||
$items['purchase-paypal/success'] = [
|
$items['paypal-purchase/success'] = [
|
||||||
'title' => 'Uspešno plačilo preko PayPala', //page title
|
'title' => 'Uspešno plačilo preko PayPala', //page title
|
||||||
'page callback' => 'nakupovanje_1ka_paypal_return', //callback function which is invoked when menu item is called.
|
'page callback' => 'nakupovanje_1ka_paypal_return', //callback function which is invoked when menu item is called.
|
||||||
'access callback' => true, //any user can access this page
|
'access callback' => true, //any user can access this page
|
||||||
@ -117,7 +117,7 @@ function nakupovanje_1ka_menu()
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$items['purchase-paypal/cancel'] = [
|
$items['paypal-purchase/cancel'] = [
|
||||||
'title' => 'Payment canceled via PayPal', //page title
|
'title' => 'Payment canceled via PayPal', //page title
|
||||||
'page callback' => 'nakupovanje_1ka_paypal_cancel', //callback function which is invoked when menu item is called.
|
'page callback' => 'nakupovanje_1ka_paypal_cancel', //callback function which is invoked when menu item is called.
|
||||||
'access callback' => true, //any user can access this page
|
'access callback' => true, //any user can access this page
|
||||||
|
@ -791,7 +791,7 @@
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
(window.location.pathname.indexOf('/narocilo/paypal-cancel') > -1 && location.search.split('narocilo_id=').length > 1) ||
|
(window.location.pathname.indexOf('/narocilo/paypal-cancel') > -1 && location.search.split('narocilo_id=').length > 1) ||
|
||||||
(window.location.pathname.indexOf('/purchase-paypal/cancel') > -1 && location.search.split('narocilo_id=').length > 1)
|
(window.location.pathname.indexOf('/paypal-purchase/cancel') > -1 && location.search.split('narocilo_id=').length > 1)
|
||||||
) {
|
) {
|
||||||
var parametri = window.location.search.substr(1);
|
var parametri = window.location.search.substr(1);
|
||||||
|
|
||||||
@ -807,7 +807,7 @@
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
(window.location.href.indexOf('/narocilo/paypal?narocilo_id') > -1 && location.search.split('narocilo_id=').length > 1) ||
|
(window.location.href.indexOf('/narocilo/paypal?narocilo_id') > -1 && location.search.split('narocilo_id=').length > 1) ||
|
||||||
(window.location.href.indexOf('/purchase-paypal/success?narocilo_id') > -1 && location.search.split('narocilo_id=').length > 1)
|
(window.location.href.indexOf('/paypal-purchase/success?narocilo_id') > -1 && location.search.split('narocilo_id=').length > 1)
|
||||||
){
|
){
|
||||||
var parametri = window.location.search.substr(1);
|
var parametri = window.location.search.substr(1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user