Drupal: "Stripe za Drupal v3 popravek"
This commit is contained in:
parent
9041a18922
commit
a2d18cffba
@ -370,6 +370,16 @@ function nakupovanje_1ka_theme($existing, $type, $theme, $path)
|
|||||||
'path' => $path_to_theme.'/templates/',
|
'path' => $path_to_theme.'/templates/',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$themes['nakupovanje_1ka_stripe_return'] = [
|
||||||
|
'template' => 'nakupovanje-1ka-stripe-return',
|
||||||
|
'path' => $path_to_theme.'/templates/',
|
||||||
|
];
|
||||||
|
|
||||||
|
$themes['nakupovanje_1ka_stripe_cancel'] = [
|
||||||
|
'template' => 'nakupovanje-1ka-stripe-cancel',
|
||||||
|
'path' => $path_to_theme.'/templates/',
|
||||||
|
];
|
||||||
|
|
||||||
$themes['nakupovanje_1ka_cenik_paketov_zasebni_uporabniki'] = [
|
$themes['nakupovanje_1ka_cenik_paketov_zasebni_uporabniki'] = [
|
||||||
'template' => 'nakupovanje-1ka-cenik-zasebni-uporabniki',
|
'template' => 'nakupovanje-1ka-cenik-zasebni-uporabniki',
|
||||||
'path' => $path_to_theme.'/templates/',
|
'path' => $path_to_theme.'/templates/',
|
||||||
|
@ -1274,7 +1274,7 @@ function oddajNarociloNaStreznik() {
|
|||||||
|
|
||||||
} else if (paymentMethod == 3) {
|
} else if (paymentMethod == 3) {
|
||||||
// Nastavimo Stripe instanco
|
// Nastavimo Stripe instanco
|
||||||
var stripe = Stripe(jQuery('.placilo-kartica #stripe-token').val());
|
var stripe = Stripe(jQuery('#stripe-token').val());
|
||||||
|
|
||||||
return stripe.redirectToCheckout({ sessionId: val.session_id });
|
return stripe.redirectToCheckout({ sessionId: val.session_id });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user