Showing results for 
Search instead for 
Did you mean: 

Paypal button render

New Community Member
Posted on

If I put in a HTML page exactelly this code only in Internet Explorer and Android webView the button won't renderer:


<!DOCTYPE html>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src=""></script>

<div id="paypal-button-container"></div>


env: 'sandbox', // sandbox | production

// Show the buyer a 'Pay Now' button in the checkout flow
commit: true,

// payment() is called when the button is clicked
payment: function() {

// Set up a url on your server to create the payment
var CREATE_URL = '/demo/checkout/api/paypal/payment/create/';

// Make a call to your server to set up the payment
.then(function(res) {
return res.paymentID;

// onAuthorize() is called when the buyer approves the payment
onAuthorize: function(data, actions) {

// Set up a url on your server to execute the payment
var EXECUTE_URL = '/demo/checkout/api/paypal/payment/execute/';

// Set up the data you need to pass to your server
var data = {
paymentID: data.paymentID,
payerID: data.payerID

// Make a call to your server to execute the payment
return, data)
.then(function (res) {
window.alert('Payment Complete!');

}, '#paypal-button-container');



Haven't Found your Answer?

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