Skip to content
  •  
  •  
  •  
19 changes: 10 additions & 9 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
<title>Messages Dev Sandbox</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<script>
window.__TEST_ENV__ = 'https://www.msmaster.qa.paypal.com';
</script>
<script src="https://www.msmaster.qa.paypal.com/sdk/js?client-id=B_AFccMdMuxDJXveYSon7w-PMTQ_aLJPy3b1Q4rz4K9iDYHi8fjX80yGEzQ2-gSHQhJVmCiO7Yp6Q3Kfow&debug=true&components=messages&stage-alias=https://cdn-culs_auth_01.static.engineering.dev.paypalinc.com/upstream/bizcomponents/stage/package.tgz"></script>
<script src="//localhost.paypal.com:8080/sdk/js?client-id=DEV_US_MULTI&components=messages"></script>
</head>
<body>
<div class="messages" data-pp-message></div>
<script>
paypal
.Messages({
amount: '500'
})
.render('.messages');
// paypal
// .Messages({
// style: {
// layout: 'flex',
// ratio: '8x1',
// color: 'blue'
// }
// })
// .render('.messages');
</script>
</body>
</html>
84 changes: 0 additions & 84 deletions demo/snapshot/modal-test.html

This file was deleted.

16 changes: 2 additions & 14 deletions demo/standalone-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,13 @@
<title>Standalone Modal Sandbox</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!-- <script src="//localhost.paypal.com:8080/modal.js"></script> -->
<script>
window.__TEST_ENV__ = 'https://msmaster.qa.paypal.com';
</script>
<script
src="https://cdn-5_1_rebrand_us_01.static.engineering.dev.paypalinc.com/upstream/bizcomponents/stage/modal.js"
data-pp-account="9DZUAPZS6JM5E"
></script>
<script src="//localhost.paypal.com:8080/modal.js"></script>
</head>
<body>
<button class="learn-more">Learn more</button>
<script>
const modal = window.paypal.MessagesModal({
// account: 'DEV_US_LONG_TERM_DF',
amount: '600',
channel: 'DEBIT_FLIP',
customerId: 'W9WK2RH9RWWQC'
// offer: 'PAY_LATER_SHORT_TERM'
// features: 'new-checkout-design',
account: 'DEV_US_MULTI'
});
document.querySelector('.learn-more').addEventListener('click', () => {
modal.show();
Expand Down
38 changes: 12 additions & 26 deletions demo/standalone.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,22 @@
<title>Messaging.js Dev Sandbox</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<script>
window.__TEST_ENV__ = 'https://www.msmaster.qa.paypal.com';
</script>
<script
src="https://cdn-op_only_json_00.static.engineering.dev.paypalinc.com/upstream/bizcomponents/stage/messaging.js"
data-pp-account="9DZUAPZS6JM5E"
></script>
<script src="//localhost.paypal.com:8080/messaging.js" data-pp-account="DEV_US_MULTI"></script>
</head>

<body>
<div
class="messages"
data-pp-message
data-pp-amount="1000"
data-pp-style-layout="text"
data-pp-style-layout="black"
data-pp-style-logo-type="primary"
data-pp-style-logo-position="left"
></div>
<div class="messages" data-pp-message></div>
<script>
paypal
.Messages({
style: {
layout: 'text',
logo: {
type: 'none'
}
}
})
.render('.messages');
// paypal
// .Messages({
// style: {
// layout: 'text',
// logo: {
// type: 'none'
// }
// },
// })
// .render('.messages');
</script>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading