Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 4:51 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Paypal not updating customer balance version 1.7.1
PostPosted: Thu Jul 15, 2010 1:39 am 
Offline

Joined: Wed Jun 16, 2010 11:22 pm
Posts: 32
Hi,
I have a problem with Paypal not updating the customer balance.

When the customer uses paypal there is only one error in the log file 2billing_epayment.log,
[13/07/2010 18:58:19]:[checkout_process.php line:318-transactionID=24 ERROR CUST
OMER INFO OR ORDERSTATUS (0)

Everything else in the log looks fine.

In the adming gui under billing -> epayment log it shows the status of the transaction as proceed, which I think it is good, I believe that is the last step in the status.

But in the billing --> transactions the status shows as pending.
So probably I have something thats needs to be configured after this step, but do not know what, since I have already gone though the documentation.


under paypal for Website payment preferences I have:
http://www.telxxxxxx.com/a2billing/cust ... rocess.php

and the box for auto return to on.
Is this all I need to do under paypal or is there is something else I need to do under paypal.

A few questions do I use the paypal secure merchant account ID anywhere in a2billing:

Under Paypal the transaction did not proceed automatically, it had the button enable to proceed to complete the transaction, which when I selected it still did not credit the balance in the account.

What I am I missing? I have followed the instructions on the forum, but it seems I did to do something more under a2billing, or I am facing with a bug, I do not know, all help will be highly appreciated.

Thanks


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Sun Jul 18, 2010 3:53 am 
Offline

Joined: Fri Jun 30, 2006 1:30 am
Posts: 31
I am having the same problem with the same version. Did you fix it? what did you have to do?


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Mon Jul 19, 2010 7:28 am 
Offline

Joined: Wed Jun 16, 2010 11:22 pm
Posts: 32
Roquito, I am still working on it.

The problem has to be troubleshooted live, since it is my understanding that the paypal sandbox will not updated the balance on a2billing, so we have to work with this problem live.

I guess that key to solving this problem involves finding what causes the error ERROR CUST
OMER INFO OR ORDERSTATUS (0) on the checkout_process.php file, it is the only error I get in the a2billing logs, next time I will also check apache logs.

Please if anyone has paypal updating the balance on a2billing 1.7.1 please let me know.

Roquito, what we could do is to organize ourselfs to try to solve this problem together by sharing information, and I could use my paypal account to test on your a2billing, and viceversa, not only we could work on the paypal problem, but on any other problem that we may have, and once we figure out the problem we could post the finding here.

I have followed the instructions on this forum step by step, and paypal does not update the balance, since I have not heard of anyone on this forum having it working with version 1.7.1 I am not sure if it is a configuration problem something undocumented that needs to be configured, a change in paypal that may have broken a2billing or a bug in the file checkout_process.php.

I would really like to know if anyone has paypal working properly on version 1.7.1, and what they did to get it working.


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Mon Jul 19, 2010 11:43 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

For me, Paypal just works, provided the right fields in the epayment section are filled in appropriately to your server.

Joe


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Mon Jul 19, 2010 3:38 pm 
Offline

Joined: Wed Jun 16, 2010 11:22 pm
Posts: 32
Joe,
Do you have a file ipn_res.php some users seems to have it, but I do not have it, is it supposed ot exist in version 1.7.1

also the field payment_notify_url I do not have and some users seem to have, should it be there on version 1.7.1?

This is my paypal config, please let me know if you see a trivial error:

key value
enable yes
http_server
https_server https://telxxxxx.com
http_cookie_domain ip address of server

https_cookie_domain ip addres of server
http_cookie_path /customer/
https_cookie_path /customer/
dir_ws_http_catalog /customer/
dir_ws_https_catalog /customer/
enable_ssl Yes
http_domain ip address of web server
dir_ws_http /customer/
purchase_amount 1:5:10:20:30:100
item_name Credit Purchase
currency_code USD
paypal_payment_url https://www.paypal.com/cgi-bin//webscr
paypal_verify_url ssl://www.paypal.com
authorize_payment_url https://secure.authorize.net/gateway/transact.dll
store_name name of store

transaction_key numeric transaction key
moneybookers_secretword
purchase_amount_agent 100:200:500:1000
charge_paypal_fee no
plugnpay_payment_url https://pay1.plugnpay.com/payment/pnpremote.cgi

http_server_agent
https_server_agent https://telxxxxxxxx.com/agent
https_cookie_domain_agent https://telxxxxxxxx.com
http_cookie_path_agent /agent/Public/

https_cookie_path_agent /agent/Public/

dir_ws_http_catalog_agent /agent/Public/
dir_ws_https_catalog_agent /agent/Public/
paypal_subscription_amount 8
paypal_subscription_period_number 1
paypal_subscription_time_period M
paypal_subscription_enabled yes
paypal_subscription_account mypaypal email address.

Is there some field missing that should be here and it is not under epayment_method, or something that can be seen that I have wrong.

Thanks,


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Mon Jul 19, 2010 3:54 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Have you got https installed on your server?

Quote:
https_server https://telxxxxx.com


Joe


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Mon Jul 19, 2010 7:12 pm 
Offline

Joined: Wed Jun 16, 2010 11:22 pm
Posts: 32
yes https is installed, and also the certificates for https.

The failure occurs at the very last step of the payment process since a2billing receives the payment and in the epayment log it shows the status of the transaction as proceed, but under transactions the status shows as pending.

I can only see one error in the logs but I do not know what it means:
[13/07/2010 18:58:19]:[checkout_process.php line:318-transactionID=24 ERROR CUST
OMER INFO OR ORDERSTATUS (0)

If you could post your all your epayment configs omitting your personal information that would probably help.

Thanks,


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Tue Jul 27, 2010 7:10 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Joe I have same problem anything below 100US is not updated

above this amount is updated.


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Tue Jul 27, 2010 8:01 pm 
Offline

Joined: Wed Jun 16, 2010 11:22 pm
Posts: 32
I finaly got it working.
Not sure of the exact change in configuration that fixed the problem, but I believe it was this:

instead of:

dir_ws_http_catalog /customer/
dir_ws_https_catalog /customer/
http_cookie_path /customer/
https_cookie_path /customer/

I changed all the fields from /customer/ to /a2billing/customer/

And now paypal is working fine.


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Tue Jul 27, 2010 9:19 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
I believe that would apply to people who has html/ as a root folder to httpd

The other fact is that the 1.7.0 version was working correctly before.


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Tue Jul 27, 2010 10:01 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
I just found the solution for me here in another post

pay attention to this configuration below

this is the correct one

Code:
paypal_payment_url = "https://secure.paypal.com/cgi-bin/webscr"


Originaly came with

Code:
paypal_payment_url = "https://www.paypal.com/cgi-bin/webscr"


This is the post I got this information from:

http://forum.asterisk2billing.org/viewtopic.php?f=8&t=7893&p=30558&hilit=paypal#p30558


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Thu Jul 29, 2010 1:42 am 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
I spoke too soon, it worked only on first transaction.

Problem still persist :(


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Thu Jul 29, 2010 3:26 am 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
So from what i'm hearing there are no succesfull transactions that are updating customer's balance via sandbox.
The only way to make it work is to use real paypal with auto return going back to /.../checkout_process.php page?

Is this correct? Why is this so complicated? I used older versions of a2billing and never had any problems with paypal.

UPDATE: You have to have IPN enabled so transactions can be returned to your website. The problem is that it only worked on FIRST transaction and no i'm getting billing with 0 USD updates.

Log files display paypal amount but the total amount is always 0


Top
 Profile  
 
 Post subject: Re: Paypal not updating customer balance version 1.7.1
PostPosted: Tue Aug 03, 2010 8:12 pm 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
Got it working finally. You have to have IPN setup and auto return in order to pass along all the transaction information back to a2billing

Also i edited checkout_process.php amount_without_vat = $amount, because it was doing some crazy calcalations here and since i don't charge VAT, now it finally displays the correct amount and updates customers balance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group