Skip to content

Commit

Permalink
PFW-1730 - Fixed the Pay Later Messaging render error for Merchants w…
Browse files Browse the repository at this point in the history
…ith no PayLater Support in account (#2001)
  • Loading branch information
deepakmaurya authored Jan 25, 2024
1 parent fba4367 commit fc8db7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ppcp-gateway/js/pay-later-messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const payLaterMessaging = {
console.log('Unable to render the PayLaterMessaging: PayPal lib not defined.')
return;
}
if (typeof angelleye_paypal_sdk.Messages === 'undefined') {
console.log('PayLaterMessaging is not enabled for this merchant account.')
return;
}
// console.log('Init PayLater');
let amount = angelleye_pay_later_messaging.amount;
let currencyCode = angelleye_pay_later_messaging.currencyCode;
Expand Down
2 changes: 1 addition & 1 deletion ppcp-gateway/js/pay-later-messaging.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc8db7c

Please sign in to comment.