Skip to content

Commit d266630

Browse files
committed
MC-42154: PayPal Throwing Error Message at Checkout
1 parent 3c5ff49 commit d266630

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/paypal-express-abstract.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ define([
7676
continueToPayPal: function () {
7777
if (additionalValidators.validate()) {
7878
//update payment method information if additional data was changed
79-
this.selectPaymentMethod();
8079
setPaymentMethodAction(this.messageContainer).done(
8180
function () {
8281
customerData.invalidate(['cart']);

dev/tests/js/jasmine/tests/app/code/Magento/Paypal/frontend/js/view/payment/method-renderer/paypal-express-abstract.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ define([
121121
});
122122

123123
it('setPaymentMethodAction is called before redirect to paypal', function () {
124-
spyOn(paypalExpressAbstract, 'selectPaymentMethod');
125124
paypalExpressAbstract.continueToPayPal();
126-
expect(paypalExpressAbstract.selectPaymentMethod).toHaveBeenCalled();
127125
expect(validateMock).toHaveBeenCalled();
128126
expect(validateMock.calls.mostRecent()).toEqual(jasmine.objectContaining({
129127
object: mocks['Magento_Checkout/js/model/payment/additional-validators'],

0 commit comments

Comments
 (0)