cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction cannot be processed due to a possible compliance violation.

Options
navzme
Contributor
Posted on

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&currency=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

Haven't Found your Answer?

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