Paypal button is not coming up in new google sites(Not classic google site)

Vijeesh
New Community Member

Hi All,

 

We tried to put the fix which is explained in the given below thread, but we could not locate any such sections(method="post" target="_blank") in our paypal code to replace - 

https://www.paypal-community.com/t5/Merchant-Products-and-Services/PayPal-Buttons-not-working-on-Goo...

 

This is the Paypal code that we are getting from Paypal website - 

<div id="paypal-button-container"></div> <script src="https://www.paypal.com/sdk/js?client-id=sb&currency=AUD" data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout: 'vertical', label: 'pay', }, createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ amount: { value: '20.85' } }] }); }, onApprove: function(data, actions) { return actions.order.capture().then(function(details) { alert('Transaction completed by ' + details.payer.name.given_name + '!'); }); } }).render('#paypal-button-container'); </script>

 

Thanks a lot in advance,

Vijeesh

 

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.