Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 20, 2024 2:40 am
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: New Payment integration (2CO) need help
PostPosted: Tue Nov 10, 2009 3:18 am 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
I am setting up a new payment method. My customers can pay and the payed amount will added to the customers
account. I found a bug and need your help.

My screenshoot shows the successfull order. There is a link "Click here to access your good"
At this time the credit is added into his account

1. In which file is this link and text "Click here to access your good" located?
2. The link looks like this
mydomain.com/a2billing/customer/checkout_process.php?sid=1289370&fixed=Y&x=56&key=C0254320F126933238CFC442107C4912&state=XX&y=16&[email protected]&street_address=ghjghjgjgj&city=gjghjghjgh&product_id=17&order_number=4154769776&merchant_order_id=&country=ARE&ip_country=United%20Arab%20Emirates&product_description=VoIP%20Credit%201%20EURO&lang=en&demo=Y&sess_id=9ba158c690b02e9fc2e82e448cb48580&pay_method=CC&quantity=1&phone=0233333333%20&total=1.00&ptcoid=fd7805920c09f7a9b697da5ee7b580bd&credit_card_processed=Y&zip=&transactionid=87&merchant_product_id=1&street_address2=&card_holder_name=test%206%20%20test%206&

If somebody copy and paste this link into the browser:

1. The buyer get back to the the Customer gui (This is right)
2. If he copy and paste it another time he will get another credit in his account (without paying) :(

I think I have 2 options:

1. Removing the link "Click here to access your good" (in which file is this link located?)
or
2. The link shall be valid only one time

Thanks
Skiller
Attachment:
2coIntegration.jpg
2coIntegration.jpg [ 73.63 KiB | Viewed 7686 times ]


Top
 Profile  
 
 Post subject: Re: New Payment integration (2CO) need help
PostPosted: Tue Nov 10, 2009 12:57 pm 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
I have changed the line 53 in the checkout_process.php

Code:
old:
" WHERE id = ".$transactionID." AND (status = 0 OR (status = 2 AND $NOW_2MIN))";

new:
" WHERE id = ".$transactionID." AND (status = 0)"; // OR (status = 2 AND $NOW_2MIN))";


With this changes its working well.

Can anybody tell me what does this 2 minutes do?

Code:
OR (status = 2 AND $NOW_2MIN))


Thanks
Skiller


Top
 Profile  
 
 Post subject: Re: New Payment integration (2CO) need help
PostPosted: Thu Nov 12, 2009 12:05 am 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Hi Skiller,
Any joy on this one.

Rgds
Eamonn


Top
 Profile  
 
 Post subject: Re: New Payment integration (2CO) need help
PostPosted: Thu Nov 12, 2009 4:46 am 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
Yes its running well now. Thank you.

But I dont know why the programmers keep the link alive for 2 minutes with this entry

Code:
OR (status = 2 AND $NOW_2MIN))


Some help are welcome from others.

Cheers
Skiller


Top
 Profile  
 
 Post subject: Re: New Payment integration (2CO) need help
PostPosted: Mon Nov 16, 2009 2:05 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
Logically the transaction should come immediately after the user complete the payment
if we don't add a protection the script is open for anybody flooding it.
2 MIN might be short, it could be increased to 10-15 maybe.

Yours,
/Areski


Top
 Profile  
 
 Post subject: Re: New Payment integration (2CO) need help
PostPosted: Mon Nov 23, 2009 3:55 am 
Offline

Joined: Mon Apr 14, 2008 8:37 pm
Posts: 356
Location: Canada
skiller wrote:
Yes its running well now. Thank you.

But I dont know why the programmers keep the link alive for 2 minutes with this entry

Code:
OR (status = 2 AND $NOW_2MIN))


Some help are welcome from others.

Cheers
Skiller

Can you share the coding as to how you were able to intergrate 2CO with A2Billing please?


Top
 Profile  
 
 Post subject: Re: New Payment integration (2CO) need help
PostPosted: Mon Nov 23, 2009 4:42 am 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
I am a little bit angry. Cause most of the users are using this forum to get the help
and the input. This people dont help others.

As I wrote here viewtopic.php?f=18&t=6494 I will share the code with all. At the moment
I am very bussy. Please give me some time for that.

Cheers
Skiller


Top
 Profile  
 
 Post subject: Re: New Payment integration (2CO) need help
PostPosted: Mon Apr 26, 2010 10:45 am 
Offline
User avatar

Joined: Fri Nov 07, 2008 12:09 am
Posts: 16
Location: Pakistan - Karachi
Hello skiller,

Can you please share your code to add 2CO payment method into A2B.


Thank You


Top
 Profile  
 
 Post subject: Re: New Payment integration (2CO) need help
PostPosted: Fri Apr 30, 2010 4:42 pm 
Offline
User avatar

Joined: Mon Oct 26, 2009 8:20 am
Posts: 93
Sorry, I don´t have the code anymore. I was using 2CO only for 2 month, cause they took a lot of fees. For Voip credit they took
10% fee cause of the risc.

After my last update I don´t care about it.

Sorry for that.

Cheers
Skiller


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 33 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group