Skip to content

Commit 0075443

Browse files
committed
Fixing issue when creating a hosted button on demo site
1 parent c212c31 commit 0075443

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h1>PayPal payment buttons</h1>
100100

101101
<p>Pick a button, click <strong>Customize</strong> to make it your own, and try the generated button to make a PayPal payment.</p>
102102
<p><small><strong>Important:</strong> Payments made using this code will be live and not Sandbox test payments.</small></p>
103-
103+
104104
<ul class="nav nav-tabs">
105105
<li class="active"><a href="#buynow" data-toggle="tab">Buy Now</a></li>
106106
<li><a href="#cart" data-toggle="tab">Add to Cart</a></li>
@@ -351,7 +351,7 @@ <h1>PayPal payment buttons</h1>
351351

352352

353353
</div>
354-
354+
355355
<a name="addpayment"></a>
356356
<h3>Add payment buttons to your site</h3>
357357
<p>PayPal makes it easy to accept payments on a website, whether it&apos;s a mobile device, tablet, or PC. Just copy and paste a short HTML snippet on your website to add a payment button or a shopping cart.</p>
@@ -432,7 +432,7 @@ <h3>Find out more</h3>
432432
// Create a script tag to use as the HTML
433433
el = document.createElement('script');
434434

435-
if (data.button.value === 'cart') {
435+
if (data.button && data.button.value === 'cart') {
436436
el.src = 'paypal-button-minicart.js?merchant=' + data.business.value;
437437
} else {
438438
el.src = 'paypal-button.js?merchant=' + data.business.value;

0 commit comments

Comments
 (0)