Implemented smart buttons are not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear community,
my name is Tobi and it's the first time I am asking here on the forum a question. Hence, I hope it is not too simple for you even though I believe it is a simple mistake I do, or something is missing. I implemented the PayPal buttons on my website and tested them using the sandbox account. It was working fine and a few weeks ago I had a problem as the AJAX response (if the payment was successful) was not working properly. Hence, I started to change the Javascript and now things are not working anymore (even the old implementation).
The problem I encounter right now is, that the payment is successfully done (live or the sandbox) but the money does not go to the business account. E.g., if I am in sandbox mode, I see my transfer from the personal account but it will not be received by the business account. In live mode it is similar. I can purchase the money but it will not be transferred to my other account. Thus, I get a PayPal notification that states, the money will be refunded soon.
The code I am using is simply the one presented in the documentation section (https://developer.paypal.com/docs/checkout/integrate/)
For clearness, I am adding my javascript code to it.
paypal.Buttons
({
createOrder: function(data, actions)
{
return actions.order.create
({
purchase_units:
[{
amount:
{
currency_code: "EUR",
value: price
}
}]
});
},
onApprove: function(data, actions)
{
setTimeout(function()
{
return actions.order.capture().then(function(details)
{
// Test notification works
alert('Transaction completed by ' + details.payer.name.given_name);
// Do something with the database (SQL stuff)
console.log('AJAX Call...');
});
}, 1000);
}
}).render('#paypal-button-container');
I am also wondering for which purpose we need the security key?
Any hint is warmly welcomed.
Thank you in advance, Tobi
- Labels:
-
PayPal HTML Buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just one hint. I enforced some errors during payment in live mode right now. I attached a screenshot.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Seller "Buy now" button - unable to edit a button in PayPal Payments Standard
- Encrypted subscription button has stopped working in NVP/SOAP APIs
- Why is the paypal button on this donation page not working, but credit card payments do? in PayPal Payments Standard
- PayPal Native checkout card errors in Sandbox Environment
- Website payment preferences, auto return stopped working with new subscription payment button in PayPal Payments Standard