Why isnt live working but sandbox is?

Neatlent
New Community Member

Im trying to add a smart button paypal thingy into my website but its not working at all. only sandbox works but when i try out live the paypal button closes and the debit card one just doesnt work.

 

CLIENT ID:
AV7cr98Ra5RK32to64KTmF7VM6fo23xu2_eJvdaFbOusn_YxJEmu-WUU_AN1TDdjpUTOq-sNjAyKTWve
 
SOURCE CODE:

<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Add meta tags for mobile and IE -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title> PayPal Checkout Integration | Client Demo </title>
</head>

<body>
    <!-- Set up a container element for the button -->
    <div id="paypal-button-container"></div>

    <!-- Include the PayPal JavaScript SDK -->

    <script>
        // Render the PayPal button into #paypal-button-container
        paypal.Buttons({

            // Set up the transaction
            createOrder: function(data, actions) {
                return actions.order.create({
                    purchase_units: [{
                        amount: {
                            value: '88.44'
                        }
                    }]
                });
            },

            // Finalize the transaction
            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');
                });
            }


        }).render('#paypal-button-container');
    </script>
</body>

</html>
   
Login to Me Too
3 REPLIES 3

MTS_Justin
Moderator
Moderator
Hello,

The account which is receiving the transaction is currently limited and this issue needs to be resolved before the transaction can be completed.

https://www.paypal.com/us/smarthelp/article/why-is-my-paypal-account-limited-faq1758

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

listingzoo
New Community Member

Hi @MTS_Justin ,

 

Thank you for doing what you do and helping all of us!

 

I need a little help...

 

The sandbox tests worked just fine, but now I keep receiving this error when processing a live transaction:

 

[TIMESTAMP] => 2022%2d05%2d17T17%3a51%3a14Z

[CORRELATIONID] => 35598d5b53d9c

[ACK] => Failure

[VERSION] => 57%2e0

[BUILD] => 56068150

[L_ERRORCODE0] => 10548

[L_SHORTMESSAGE0] => Invalid%20Configuration

[L_LONGMESSAGE0] => This%20transaction%20cannot%20be%20processed%2e%20The%20merchant%27s%20account%20is%20not%20able%20to%20process%20transactions%2e

[L_SEVERITYCODE0] => Error

[AMT] => 0%2e15

[CURRENCYCODE] => USD

 

What are your thoughts on how to fix this issue?

Thank you Sir!

 

~Eric 🙂

 

Login to Me Too

MTS_Justin
Moderator
Moderator
Hi @listingzoo

It appears that the DirectPayment API wasn't enabled on your account when you made the attempt on the 17th May, but from checking your account I see it has since been enabled.

Can you please make a new attempt today and let me know the result ?

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

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