Error: Detected container element removed from DOM
best_graphics
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-04-2021
11:28 AM
I am using PayPal Checkout button on my website. It is working fine in chromium or firefox. But is showing error "Error: Detected container element removed from DOM" in 'google chrome'
my code is
// PayPal Payment
paypal.Buttons({
createOrder: function(data, actions) {
// This function sets up the details of the transaction, including the amount and line item details.
validate_form()
return actions.order.create({
purchase_units: [{
amount: {
value: orderData.total_price()
}
}]
});
},
onApprove: function(data, actions) {
buy()
return actions.order.capture().then(function(details) {
console.log('Transaction completed by ' + details.payer.name.given_name);
// redirect to success page
window.location.replace("/order/payment-successful/");
});
}
}).render('#idPaypalCheckout');
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.
Related Content
- Payment not automatically being captured, funds not transferred in Sandbox Environment
- Invalid 'custom' parameter in PayPal Reporting
- Paypal blocked domain for IPN in Sandbox Environment
- Transaction with PP button does not show product description in PayPal Payments Standard
- Need notifications for ORDER ID in my paypal dashborad and to buyer email in PayPal Payments Standard