How can I force Guest Checkout in Woocommerce using PayPal Express? - wordpress

I'm trying to launch an online store using Wordpress, WooCommerce and the "Paypal for Woocommerce" Plugin.
On Paypal, Guest Checkout is only available on mobile, but it's not an option on desktop. I read somewhere that you need to add this lines to your SetExpressCheckout API Call but I don't know where to put them:
SOLUTIONTYPE=Sole
LANDINGPAGE=Billing
Can anyone using this plugin help me? Thank you.

it is true that if you add those parameters to the SetEC API call it will enable guest checkout and present the credit card form on the hosted page. To add these parameters, however, you have to alter the source code of the plugin. If you are using Angelleye's plugin there is a setting:
PayPal Account Optional – If your PayPal account is setup with PayPal Account Optional enabled (available in your PayPal account profile) then setting this option here will provide a better checkout flow for non-PayPal users. It will be more obvious that you do not need a PayPal account in order to complete payment, and this will typically increase conversion rates.
you can see complete documentation here.

Related

WooCommerce shipping charges isssue with PayPal

Issue in WooCommerce Shipping Calculation with PayPal
Currently Using WooCommerce for cake store and using PayPal for payment gateway.
I have created $5 discount for store pickup. So ideally a $50 product should be $45. That reflects in the website.
But when user goes to "Payment via PayPal", it still shows $50.
Any suggestions how to override shipping calculations of PayPal on WooCommerce?
I saw many articles on google but can't find the appropriate solution.
I also checked the box on override allow transaction-based postage values to override the profile postage settings listed above (if profile settings are enabled), but with no luck.
Can any one help me with this? Thanks in advance.
There are various ways to resolve the issue, but perhaps the most straightforward would be to switch to a PayPal payment plugin that uses an API instead of Payments Standard, for example this official one: https://woocommerce.com/woocommerce-and-paypal/ (there are also various third party ones available)
Then, profile shipping settings in the PayPal account will not affect WooCommerce transactions in any way, since everything about the transaction will be set via the API. This is also a more robust and feature-rich solution in general, and so recommended by both PayPal and most programmers/developers familiar with PayPal integration methods.

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 doing crazy things

First of all , the test accounts I created were not working. So, I removed all Paypal cookies.So, now good thing I can login into test accounts but can't access My Settings and My Selling tools under My Profile. I'm trying to create Buy Now button in My Selling tools.
Also, My Paypal live account is for Paypal Payments Standard(My Business Setup->My payment solution) and in test account the payment solution is Paypal Payments Pro and doesn't let me change this option.The links in my business solution (View all products to learn more or select an additional payment solution or we can recommend one that fits your needs.) goes to PayPal live site.
Any one facing this crazy PayPal sandbox behavior !!!
When you say you can't access My Settings and My Selling tools under My Profile, are you getting an error or what is it doing specifically. The Pro account that you have in sandbox, will work for testing Website Payments Standard. Also, another option if you can't create test buttons from your sandbox account would be to log into your live account and create a non hosted / clear text button. Then you would just modify the button code, and change the URL in the form tag from the live site to the sandbox site. Also, you will need to change the value of the business variable and set it to either the email address of your test sandbox seller account or the merchant id. Another work around that has worked in the past as well, is going into your live account and going to the page you are wanting and copy the URL from the address bar and just modifing it to include the sandbox URL.
So if my live site URL was something like:
https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=
I would just change it to
https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=
Also, if you can give me more details about what is happening when you try to access your profile in your sandbox account I can look into it further.

Paypal discount code with buy now button

I've created a paypal buy now button and integrated it successfully. When testing I notice that once I reach the paypal site there's an option to redeem a "voucher, reward or other discount".
How do I create the voucher/discount codes?
The instructions I've seen so far seem to relate to handling the coupon codes on your own website i.e. you have to allow users to enter the code on your site. I'm looking for a solution where my customers can redeem a coupon code on the paypal website using the option I mentioned earlier.
You cant create vouchers. Only paypal or ebay users can create those.
You're gonna have to create a script that calculates the discounts on your website before sending the total amount to paypal checkout.
Check a script i posted on my profile for more info.
If you are using V2 of the PayPal API, add it as part of the breakdown.
https://developer.paypal.com/docs/api/orders/v2/#definition-amount_breakdown

Resources