Woocommerce Paypal Standard: get Sandbox status - woocommerce

I'm working on a code to programmatically change paypal account based on cart, I've just one problem, I want to know if sandbox is active on Paypal Standard Gateway to serve sandbox account, or if I'm on live mode to serve live account. Someone knows how to get the sandbox status?
Tnx

Sorry, stupid question, I've looked for an hour but at the end I realize that the simple way is a standard wordpress get_option api:
get_option("woocommerce_paypal_settings")
Thanks

Related

Problems with PayPal in WooCommerce

I have correctly configured payments with PayPal in WooCommerce, sometimes I get orders and pay for PayPal and everything is fine, but sometimes some customers pay and WooCommerce does not change the status of the order to "Paid", and for that reason customers contact me to tell me that they already paid and yes.
Does anyone feel the same?
PS: This error is occasional, I do not know what it could be.
You could always just log in to your PayPal account and see if the transactions that show an incorrect status in WooCommerce do actually exist in your PayPal transaction log with the correct status. If so, then you should contact WooCommerce support for them to explain why those same transactions do not show up with the correct status in their portal. If WooCommerce tells you that it's an issue with PayPal (and thus, there is nothing to be corrected at their side), then open a case with PayPal support and they can look into the logs being sent from WooCommerce's API calls into PayPal to confirm whether or not they are doing it properly.
PayPal Standard that comes with WooCommerce uses IPN to update the order status. Unfortunately, their IPN integration is not great, and it often fails.
If you use my PayPal for WooCommerce instead, and setup Express Checkout, this problem will not happen. Also, you'll have a lot more features and functionality.

Is there a way of using PayPal sandbox when testing Neto checkout?

I need to test the paypal payment system under Neto ecommerce. I have setup paypal sandbox and it works fine when used directly. It appears that Neto is hard wired to only connect to "paypal.com" whereas the sandbox needs "sandbox.paypal.com" - I am not at all keen test the Paypal payments live!! Can anyone confirm this?
Yes, you can. Look in Advanced Configuration and search for paypal and you'll see the settings you need to change.

Woocommerce orders not being received by PayPal, but email suggests otherwise

Having a nightmare with this and cannot find a solution anywhere - the only similar issues I find are the exact opposite problem!
Placing an order using PayPal (standard) at checkout puts the order 'On hold' in wp, but completes on the front end and the user even receives the PayPal receipt so are none the wiser. In the PayPal business account there is nothing.
Interestingly, PayPal express checkout works fine! So the account is definitely setup correctly. Something I have noticed is that the receipt from the express checkout transaction and from the standard have different Merchant names - the standard one (the one not working)has the name#emailaddress.com rather than the merchant name. This would suggest that this is the issue, but I've been into the business settings and checked this as well as the Woocommerce settings and everything is in order.
Any ideas? Thanks in advance!
For Woocommerce PayPal standard you have to enable Auto return url and Notification url(Instant payment notification) which will update the order status on your woocommerce. Refer the following URL link: https://docs.woocommerce.com/document/paypal-standard/ and enable both Auto return & Instant payment notification settings on the Merchant/Business PayPal account. Please note that Merchant PayPal account is not linked with any other website.
PayPal Express checkout is recommended: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/
I would recommend you just stick with Express Checkout. It has many more features and options than PayPal Standard. I would recommend the PayPal for WooCommerce, though, which is the one PayPal reps would recommend as well if you talk to them.

Cant enable checkout without a PayPal account

I have setup a woocommerce on website with Paypal chekout. The Paypal account is Business and settings are changed to "Paypal Account Optional" - on.
But the checkout still forces to create Paypal account without simple credit card checkout. Why?? What could be possible wrong here? Thank you!
Be sure the merchant account email address is confirmed.
When using Payments Standard it's all based on browser session cookies. If you've signed in to a PayPal account with that browser it assumes that's what you'll be doing in the future so it hides the guest checkout option a little more.
If you clear the browser cache/cookies, or use a fresh browser, you should see the guest checkout option more prominently displayed during checkout.
Express Checkout handles this a little better where rather than completely working from cookies you can make adjustments in your API calls. The PayPal for WooCommerce plugin provides Express Checkout so you could utilize this benefit. There are options in the plugin settings to adjust that accordingly.
It still looks a little different depending on your browser cache/cookies and the version of PayPal they've got you on, but in general the guest checkout (credit card) option is much more obvious to people when using Express Checkout with those options enabled.

Paypal Sandbox Express Checkout Session Expired

I've been using my seller's and buyer's Paypal sandbox accounts to purchase fakes on my ecommerce and everything was working fine up until 1 hour ago.
Nothing has changed in my code, and I even tried to create and add new API credentials for my site, but every time I try to pay with Paypal Express I land to a "Session Expired" error page.
On someone else's machine the thing is still working.
It seems like no one on the net knows why, is it something to do with my browser?
Apparently, for no apparent reason, after a while you use Paypal's sandbox, you have to do the cleaning and delete all your cookies from Paypal to make it work.

Resources