Paypal email invoice - php

I have an e-commerce project developed in Kohana2.3.4V, My problem is Paypal invoice e-mail is not showing the product name or description. I also pass the parameters to the SetExpressCheckout function are as follows:
METHOD
VERSION
RETURNURL
CANCELURL
PAYMENTREQUEST_0_PAYMENTACTION
PAYMENTREQUEST_0_CURRENCYCODE
PAYMENTREQUEST_0_AMT
L_PAYMENTREQUEST_0_AMT
L_ITEMCATEGORY
L_PAYMENTREQUEST_0_NAME
L_PAYMENTREQUEST_0_QTY
LOGOIMG
PAYMENTREQUEST_0_SHIPPINGAMT
PAYMENTREQUEST_0_TAXAMT
PAYMENTREQUEST_0_ITEMAMT
When customer clicks on the Paypal button, it will redirect to Paypal home page and at that time we can see all information including Product name, Quantity, price etc., but after the payment success Paypal will send an email, which includes purchase details but it is not showing the product name or description. It is really confusing. Please give me a solution if you know one.

Related

Add custom informations to paypal recurring payments

I'm trying to make a recurring payment system with paypal on my own website.
People on my website have accounts, and they will pay in order to get more options.
I've a "suscribe" button created with paypal (price, payments intervals etc choosen in paypal). Onclick, my customer is redirected to paypal website in order to continue his purchase.
This is working, if the payment performed I add options to the user in my database.
So, there is a recurring payment each months but I have to create a "Cancel" or "Disengagement" button.
This disengagment button have been created too, so onclik the user is redirected to the paypal website to cancel his subscription.
If the subscription is canceled, paypal send me informations with the IPN (Instant Payment Notifications) to an URL indicate in paypal options (paypal-notification.php).
The problem is that the user isn't redirected to my website after this, so I can't get his session information (id or email indicate in my database) to delete his options in the database.
I think that is possible to add custom options to paypal when a user suscribe at the options. For example, I give the user ID (of my database) to paypal when he is suscribing and Paypal give me back this Id when the user cancel is suscribtion ?
Thanks !
PayPal uses a subscription ID. When you're registering the subscription you can send through a custom ID, normally an order ID but in your case it could be the user ID. So you just add <input type="hidden" name="custom" value="$id"> to your form, and then the IPN will have that ID in it for every notification, including the cancellation notification.
When the user first subscribes you'll get a subscription started notification from PayPal, at that point you should record the ID given to this subscription by PayPal. It's stored in the subscr_id value passed back by PayPal IPN. Then when the user cancels the subscription the notification will have that subscription id, which you can use to identify which user has cancelled their subscription. This would be the better way, rather than relying on the user ID being passed back from PayPal.

PayPal tracking not showing the Receipt ID for certain transactions

I'm using Website Payments Standard account and I have integrated Add to Cart button and Subscription button in my website. Few payments were made by my clients. But upon downloading my transaction history, I cannot view/retrieve the Receipt ID for certain payments, no matter if it is through Add to Cart or Subscription. Few transactions shows blank field for receipt ID. Can anyone guide me in finding out the problem? Is it anything related to my Website Payments Standard account? Or anything related to my client's account?
The PayPal IPN variable reference states the following for the receipt_id parameter.
Unique ID generated during guest checkout (payment by credit card
without logging in).
Sounds to me like you must have some payments coming through via guest checkout and others coming through as actual PayPal payments, so those wouldn't have a receipt_id.

No description or item name on PayPal Payment Received email

Using PayPal Express Checkout (via WooCommerce & the WooThemes PayPal Express Checkout plugin, on the e-mail that my client receives on payment (from their client), the description of the product is blank. Ideally I would want it to display the product name or at least item number, so the correct product can be shipped without matching up emails from PayPal & WooCommerce.
I'm pretty sure WooCommerce is sending the information to PayPal, because when I go to purchase an item, when I click the PPE button, it will show item names & prices in PayPal (had to blur specific item names)
I just need some way to identify which products to send out, from the 'You received a payment of X from Y' email PayPal sends out - I have taken a look in the plugin but all information looks like it is being sent through, so I'm not sure this is on the plugin side, I looked on PayPal developer support area and they linked to here, so I figured it would be a lot faster response than waiting for an e-mail from PayPal, and I am currently waiting a reply from WooThemes in regards to the plugin
As a side note, this also happens when the sandbox mode is enabled.

Paypal Sandbox, how to verify sale with IPN for specific cart ID

I want to setup paypal sandbox to test sales. what i have done so far is setup seller and buyer account, created form for sanbox, enabled IPN.
What i dont understand is how i know which sale is being processed.
The IPN only send:
buyers desription
item purchased
paid amount.
I want to know, how can i send a cart id to sandbox, and receive it back with IPN, so i can process it.
i didn't found anyinformation about this on google and paypal documents.
Please help me on this, it took me many days and i haven't figured how to verify sales.
There's a variable you can pass in your HTML form called custom (variable reference). This field will be passed back to you in your IPN (IPN Reference). You can populate this with up to 255 characters and the customer won't see any of it.
Use invoice (which you should have to pass to paypal) or pass your own id through custom
edit: note that invoice must be unique, you cannot resuse an invoice to paypal otherwise you will get an error.

Paypal send personal details to checkout page

Anybody know how to send values like Name, email, city, country, phone etc to populate the new account form on the paypal checkout page? I am taking billing and shipping address on my site only. just want to send the same to the checkout page so that the user won't have to fill it up again on that page.
I am using the paypal ipn class from http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html
Please help!
Looks like you need to implement the Express Checkout documentation located here.
In an Express Checkout flow, a buyer still checks out at thebeginning of the flow and pays on your site; however, the buyerdoes not reenter shipping, billing, or payment information, becauseit is already available from PayPal. This simplifies and expeditesthe checkout process. The buyer can then proceed to review the orderon your site. You can include other necessary checkout steps. Youcan also up-sell to the buyer on your Review Order page.
(Others have noted the teribble formatting of the paypal documentation in its current state, namely the lack of spaces. Hopefully they'll get that sorted out soon.)
You can use GetExpressCheckout to get a customer's shipping information so that you can store it. As stated in the documentation GetExpressCheckout "obtains information about the buyer fromPayPal, including shipping information."

Categories