Skip to content

Commit

Permalink
VERSION 3.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
artembelfox committed Dec 17, 2024
1 parent 1c7ce8e commit 26c3004
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions catalog/view/javascript/paypal.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ var PayPalAPI = (function () {
var paypal_callback;

var showPayPalAlert = function(data) {
$('.alert-dismissible').remove();
$('.alert-paypal').remove();

if (data['error'] && data['error']['warning']) {
if ($('#paypal_form').length) {
$('#paypal_form').prepend('<div class="alert alert-danger alert-dismissible"><i class="fas fa-exclamation-circle"></i> ' + data['error']['warning'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
$('#paypal_form').prepend('<div class="alert alert-danger alert-dismissible alert-paypal"><i class="fas fa-exclamation-circle"></i> ' + data['error']['warning'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
} else {
$('#alert').prepend('<div class="alert alert-danger alert-dismissible"><i class="fas fa-exclamation-circle"></i> ' + data['error']['warning'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
$('#alert').prepend('<div class="alert alert-danger alert-dismissible alert-paypal"><i class="fas fa-exclamation-circle"></i> ' + data['error']['warning'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion install.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "PayPal",
"code": "paypal",
"license": "GPL",
"version": "3.1.11",
"version": "3.1.12",
"author": "Dreamvention",
"link": "https://dreamvention.com/"
}
2 changes: 1 addition & 1 deletion system/config/paypal.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
$_['paypal_setting'] = [
'version' => '3.1.11',
'version' => '3.1.12',
'partner' => [
'production' => [
'partner_id' => 'TY2Q25KP2PX9L',
Expand Down

0 comments on commit 26c3004

Please sign in to comment.