Drupal: "Stripe za Drupal v3 popravek"

This commit is contained in:
Robert 2020-11-16 15:56:49 +01:00
parent 9041a18922
commit a2d18cffba
2 changed files with 11 additions and 1 deletions

View File

@ -370,6 +370,16 @@ function nakupovanje_1ka_theme($existing, $type, $theme, $path)
'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'] = [
'template' => 'nakupovanje-1ka-cenik-zasebni-uporabniki',
'path' => $path_to_theme.'/templates/',

View File

@ -1274,7 +1274,7 @@ function oddajNarociloNaStreznik() {
} else if (paymentMethod == 3) {
// 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 });
}