Paypal discount code with buy now button - 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

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.

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

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.

How do I fetch the Transaction ID from PayPal website to my web site?

I am using Paypal sandbox testing module in my Shopping cart site. I have test account in paypal sandbox. i am sending amount to paypal. After payment success when retun back to my web page I want to get transaction id and amount.Kindly help me.
You probably want to use Paypal IPN. You can get the Paypal transaction id, amount, and a slew of other information, using Paypal IPN. Basically, this is where Paypal will do an https post back to your site after a transaction, and send all of the info for the transaction. See https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNIntro/ for info.
You need to specify redirect url.You can have two urls one for success and other for failure.Thats how i implemented it in one of my project (Dont have it now with me for reference).
Take a look here or here.This link has an sample project.It may help.

How do I link PayPay Standard on Website to PayPal Account?

I have Cube Cart V5 installed and have activated PayPal Standard as payment method. On a test sale, the PayPal screen comes up and asks 1) Login to your PayPal Account, 2) Use your credit card. How do I link this to my PayPal account so that purchases are registered to my PayPal account?
I am not familiar with Cube Cart but in the most basic way as a paypal merchant you are issued a merchant username and password that represents you and in your management tools for your cart you can cut and paste those values in there that will take care of transactions.
When a payment is initialized it is normally passes values through a URL string. Your merchant information will be in that string so it can match up to an account to receive money.
Paypal has integration documentation, but the people that support the Cart should be able to help you more efficiently. See if they have a forum if you don't get direct support.
I'm not sure what you're asking. Paypal works this way, by connecting you directly to paypal and allowing you to sign in and make your payment on their website. When your customer makes a payment, the money goes into your paypal account which you entered into cube during the setup process.
If you prefer to use paypal's api key, you can learn more about it at this link: https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECAPICredentials/

Resources