No brand_name in the popup window

1233fsdfsdg
Contributor
Contributor

I've tried the follow code. Why I can't see the brand_name in the checkout popup

<!DOCTYPE html>
<html lang="en">

<head>
<!-- Add meta tags for mobile and IE -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title> PayPal Smart Payment Buttons Integration | Horizontal Buttons </title>
</head>

<body>
<!-- Set up a container element for the button -->
<div id="paypal-button-container"></div>

<!-- Include the PayPal JavaScript SDK -->
<script src="https://www.paypal.com/sdk/js?client-id=*******MY_CLIENT_ID*******"></script>

<script>
paypal.Buttons({

// Set up the transaction
createOrder: function(data, actions) {
return actions.order.create({

reference_id: 'BAR 10',
description: 'BAR Donation $10',
purchase_units: [{
amount: {
value: '10.00',
currency_code: 'USD',
breakdown: {
item_total: {value: '10', currency_code: 'USD'}
}
},
items: [{
name: 'BAR Donation 10',
unit_amount: {value: '10.00', currency_code: 'USD'},
quantity: '1',
category: 'DIGITAL_GOODS'
}]
}],
application_context: {

brand_name: 'Brand-name',
shipping_preference: 'NO_SHIPPING',
return_url: 'https://www.google.com',
cancel_url: 'https://www.google.com'
}
});
}

}).render('#paypal-button-container');
</script>
</body>

</html>

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.