How to hide PayPal button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can we check my code did work for 2 days and stop working if there a problem with PayPal please tell me ,
I am trying to hide the PayPal button, when i did its go to wrong url: https://www.paypal.com/checkoutnow?
As we can see we need here @latinumcheckout not @checkoutnow?
What to do ?
Thanks!
@PayPalbutton
<script>
var FUNDING_SOURCES = [paypal.FUNDING.BANCONTACT, paypal.FUNDING.IDEAL];
FUNDING_SOURCES.forEach(function (fundingSource) {
var button = paypal.Buttons({
createOrder: function (data, actions) {
return actions.order.create({
shipping_type: 'PICKUP',
application_context: { shipping_preference: 'NO_SHIPPING' },
purchase_units: [{
amount: {
value: '88.44'
}
}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Successful capture! For demo purposes:
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
var transaction = orderData.purchase_units[0].payments.captures[0];
alert('Transaction '+ transaction.status + ': ' + transaction.id + '\n\nSee console for all available details');
// Replace the above to show a success message within this page, e.g.
// const element = document.getElementById('paypal-button-container');
// element.innerHTML = '';
// element.innerHTML = '<h3>Thank you for your payment!</h3>';
// Or go to another URL: actions.redirect('thank_you.html');
});
},
fundingSource: fundingSource,
}).render('#bancontact-button-container');
});
</script>

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- Things don’t appear to be working at the moment in PayPal Payments Standard
- Something went wrong. Contact the merchant for help. in PayPal Payments Standard
- How to prompt a "thank you" after using donate button on a website in PayPal Payments Standard
- QR Code Issue in Braintree Client-side Integration (JS, iOS, Android SDKs)