No brand_name in the popup window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
- Labels:
-
PayPal HTML Buttons
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs
- Payment not automatically being captured, funds not transferred in Sandbox Environment
- Load paypal approval_url in popup window using sdk in SDKs
- Trying to connect sandbox credentials in Magento 2.0 returns "Something went wrong." in Sandbox Environment
- Paypal donate popup iframe height. in SDKs