Transaction cannot be processed due to a possible compliance violation.
navzme
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jan-14-2022
07:16 PM
I'm receiving the following error in Google Chrome console. Transaction ID: 9G694085YL295405B
PayPal Smart Button Code:
<div id="smart-button-container">
<div style="text-align: center;">
<div id="paypal-button-container"></div>
</div>
</div>
<script src="https://www.paypal.com/sdk/js?client-id=<CLIENT ID>&enable-funding=venmo¤cy=USD" data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {
shape: 'rect',
color: 'gold',
layout: 'vertical',
label: 'pay',
},
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{"description":"Your donation will assist in resourcing open-source projects.","amount":{"currency_code":"USD","value":1}}]
});
},
onApprove: function(data, actions) {
return actions.order.capture().then(function(orderData) {
// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));
// 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');
});
},
onError: function(err) {
console.log(err);
}
}).render('#paypal-button-container');
}
initPayPalButton();
</script>
Error:
{
"name":"UNPROCESSABLE_ENTITY",
"details":[
{
"issue":"COMPLIANCE_VIOLATION",
"description":"Transaction cannot be processed due to a possible compliance violation. To get more information about the transaction, call Customer Support."
}
],
"message":"The requested action could not be performed, semantically incorrect, or failed business validation.",
"debug_id":"f172229c8f357",
"links":[
{
"href":"https://developer.paypal.com/docs/api/orders/v2/#error-COMPLIANCE_VIOLATION",
"rel":"information_link",
"method":"GET"
}
]
}
My account is not under any limitations. Please advise how to resolve this error.
Thanks
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
- Receiving money in Transactions Archives
- error 14764 in Transactions Archives
- Permanently Limited Account Due to Alleged Acceptable Use Policy Violation in Security and Fraud Archives
- Toloka app withdrawl transaction blocked due to regulatory compliance reasons in Transactions Archives
- Can I dispute a transaction past the 180 days when it violates the E.U. legislation? in Security and Fraud Archives