Hi,
This is very comon problem but no perfect solution. I am having the same problem. Let me explain a bit.
For Information I am using A2B ver 1.2.3
When customer logs in customer interface and tries to purchase credit through PayPal using Credit Card, they get paypal payment page and successfully pays their payment.
In PayPal I have enable "Instant Payment Notification" and set URL=http://a2b.mycompany.com/A2Billing_UI/paypal/ipn_res.php
(I have tried with both http and https)
I have enabled "Payment Data Transfer" under "Website Payment Preferences". I have enabled "Auto Return" as well with Return URL=http://a2b.mycompany.com/A2BCustomer_UI/index2.php
Here are the configs of Paypal section in a2billing.conf
***************************************************
; PAYPAL SETTINGS
[paypal]
Set the Paypal Email account.
[email protected]
; Set the from:address for the transaction notification
[email protected]
; Define the from:name for the transaction notification
from_name=SALES
; Set the company name to send for the transaction notification
company_name=Company Full Name
; Set the email address for the notification and error report
[email protected]
; The Item name that is displayed to the customer when credit is purchased
item_name="Credit Purchase"
; Currency for the purchase, only one currency can be defined
currency_code=USD
;IMPORTANT - Define here the URL to notify the payment back to the customer
;note that this is initiated by Paypal, and uses port 445 HTTPS, so this port must be open in the firewall.
notify_url=http://a2b.mycompany.com/A2Billing_UI/paypal/ipn_res.php
;Set the different amounts which are available - 5 amounts maximum (5:10:15)
purchase_amount=5:10:20:50:100
; paypal log file, to log the transactions & errors
paypal_logfile=/tmp/a2billing_paypal.log
************************************************************
Here is the response I got by email
************************************************************
Bad order (PayPal says it's invalid)HTTP/1.1 200 OK
Date: Tue, 13 Nov 2007 13:52:36 GMT
Server: Apache/1.3.33 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_ssl/2.8.22 OpenSSL/0.9.7e
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=%7CgwTqlIcifTCGkHWtDr5TwQZBfY-xUV1-9olMzyVCenBpVme6odPFbJNKMMdfLhvQ2AXYdG%7CyPzxp-xMNvaMWdwqhXXduV-KEBArrjpTK3-H4fu8DUsrIJSGS5W_yk9QcMgxtRUwhGahR0%7C; path=/; domain=.paypal.com
Set-Cookie: cookie_check=yes; expires=Fri, 10-Nov-2017 13:52:36 GMT; path=/; domain=.paypal.com
Set-Cookie: navcmd=_notify-validate; path=/; domain=.paypal.com
Set-Cookie: Apache=XXX.XXX.XXX.XXX.98141194961956385; path=/; expires=Thu, 05-Nov-37 13:52:36 GMT
Connection: close
Content-Type: text/html; charset=UTF-8
INVALID
************************************************************
I do not see any entries in PayPal transactions under admin site.
I would really appreciate if someone can help me out.
Please let me know if you need further details.
Thanks
Salman Karim