Skip to content

Commit ac54f1b

Browse files
committed
MC-31504: [2.4.0] Update PayPal plugin to use the PayPal JavaScript SDK
- Fixed static and style issues
1 parent 2f07acc commit ac54f1b

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

app/code/Magento/Paypal/view/frontend/web/js/in-context/express-checkout-smart-buttons.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ define([
1717
* @param {Object} clientConfig
1818
* @returns {Object} jQuery promise
1919
*/
20-
function performCreateOrder(clientConfig)
21-
{
20+
function performCreateOrder(clientConfig) {
2221
var params = {
2322
'quote_id': clientConfig.quoteId,
2423
'customer_id': clientConfig.customerId || '',

app/code/Magento/Paypal/view/frontend/web/js/in-context/express-checkout-wrapper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ define([
3939
*/
4040
onClick: function () {
4141
//display loading widget
42-
$("body").trigger('processStart');
42+
$('body').trigger('processStart');
4343
},
4444

4545
/**
@@ -106,7 +106,7 @@ define([
106106
* @return {*}
107107
*/
108108
afterOnAuthorize: function (res, resolve, reject, actions) {
109-
$("body").trigger('processStop');
109+
$('body').trigger('processStop');
110110
if (res.success) {
111111
resolve();
112112
return actions.redirect(res.redirectUrl);
@@ -123,7 +123,7 @@ define([
123123
* @param {Function} reject
124124
*/
125125
catchOnAuthorize: function (err, resolve, reject) {
126-
$("body").trigger('processStop');
126+
$('body').trigger('processStop');
127127
this.addAlert(this.paymentActionError);
128128
reject(err);
129129
},
@@ -135,7 +135,7 @@ define([
135135
* @param {Object} actions
136136
*/
137137
onCancel: function (data, actions) {
138-
$("body").trigger('processStop');
138+
$('body').trigger('processStop');
139139
actions.redirect(this.clientConfig.onCancelUrl);
140140
},
141141

app/code/Magento/Paypal/view/frontend/web/js/in-context/paypal-sdk.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ define([
1313
* Loads the PayPal SDK object
1414
* @param {String} paypalUrl - the url of the PayPal SDK
1515
*/
16-
return function loadPaypalScript(paypalUrl)
17-
{
16+
return function loadPaypalScript(paypalUrl) {
1817
//configuration for loaded PayPal script
1918
require.config({
2019
paths: {

0 commit comments

Comments
 (0)