in

AlertPay Developers Community

Alertpay Remote login (PHP & CURL) Help

Last post 11-09-2008 8:19 PM by solcire. 18 replies.
Page 1 of 2 (19 items) 1 2 Next >
Sort Posts: Previous Next
  • 09-08-2008 12:09 PM

    Alertpay Remote login (PHP & CURL) Help

    Hi,I am trying to write a module for the remote login and payment using PHP and CURL.I am able to login to alertpay account from a remote location.But during the second or final step of making payment using send money form I get this error randomly on second or final step of the payment  The file you are trying to upload is too big. Try uploading a smaller file 

    value of  encrypted string  __VIEWSTATE  does include in the request, get using regular expressions.  

    Can anyone provide me any help regarding this issue?

  • 09-09-2008 9:31 AM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

    I don't think it is AlertPay's policy to support such custom scripts. Also it's very difficult to debug something that you do not have the access code to. There are many possible causes to the problems. My best guesses:

    -you are truncating the __VIEWSTATE encrypted string

    -you are not passing all the hidden fields between pages

    -Your https request is not properly formed or is missing other information

    If you are still experiencing problems, private message me the scripts and I can take a look at it. I'm very busy at the moment so I can't promise that I'll solve your problem.

    Robin, B. Eng.
    Software Developer
    AlertPay.com
  • 09-12-2008 10:18 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

    Thanks, source link has been sent via provate message  hope to hear a positive response from you  

  • 09-21-2008 11:42 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

     do you fix this problem?

     

    i'm having the same problem here..

     

    and.. can i see your script =)

  • 09-22-2008 1:04 AM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

    No I haven’t figure it out :(, nor heard any response from alertpay team, as msg being shown is random so I am not sure the cause of the problem.    

  • 09-25-2008 4:03 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

     i've successfully maded an correct transaction using cURL... but i have something weird in one of the cookies sended by alertpay

     

     

     Cookie: __utma=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxx; __utmz=xxxxxxxxxxxxxxxxxxxxxxxxxxxx.utmccn=(referral)|utmcsr=gen2ptc.com|utmcct=/demo2/acc.php|utmcmd=referral; ASP.NET_SessionId=xxxxxxxxxxxxxxxx; __utmc=xxxxxxxxxxx; .AUTHCOOKIE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx; AP_Login=; __utmb=xxxxxxxx

     

    you can see the GEN2PTC.COM ???

     

    i'm trying this from my own server...  i don't know why this is saved by the alertpay cookie...

     

    does alertpay have any conection with gen2ptc.com????

  • 09-29-2008 6:15 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

     I spent about 5 hours scratching my head trying to figure out where alertpay was setting the utm* cookies. I finally narrowed it down and its actually google analytics.. what a waste of time LOL

     

    so basically they are useless cookies that you do not need to worry about when communicating with alertpay via curl.

  • 09-30-2008 3:04 AM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

     I have blocked out those ones and i take only the ones i need :)

    I've had another thing ... when i was at the final step to do the payment, I was getting an error from AlertPay that they have some problem. It took me almost half a day to figure it out that it was one of the hidden fields value that hadn't been transferfed from step to step.

    I've had some problems transfering the __VIEWSTATE from one step to another, but I have figured it out successfuly AND managed to do my first payment trough curl + php ... i will be integrating that one into my web very soon... still doing some testing.

     

    Filed under: , , , ,
  • 09-30-2008 3:14 AM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

    Yeah one of the things i tested thanks to foresight was if viewstate changes on every page and if there are certain viewstate changes that needed to be captured before going on (for example you cant post directly to the masspay script using the accountoverview viewstate, you first need to load it, get the viewstate, and then post with that viewstate)

    I also finished my script today for automated payments and it works beautifull

    If anybody wants to purchase the class I wrote (it uses masspay instead of single payment so you can send any number of payments at once - I will personally be using it in a cron that runs ever 2 minutes to process pending payment request) you can PM me and we can work out a price.

  • 09-30-2008 1:20 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

     scot.. i've sended you a PM... =) please answer ASAP

  • 09-30-2008 6:16 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

     Mine is php / myslq / curl based runs at presistent connection to AlertPay with buffer of payments pending and time until next payment. If you set buffer to 1 and pending payments to 0 the result is in-time payments :) You can use it as ordinary payment method also. And combine 2 sessions :D

    Just an advice ... By the way php/curl/mysql is safer than pure curl. Pure curl needs direct access to a file that is chmod to 777. Guess what will happens when i find that file ;)

    Anyway good job! If anyone needs help setting up curl/php/mysql let me know. And NO ... I am NOT selling my class, but I will help you with your own.

  • 09-30-2008 7:36 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

     I handled the cookies directly via parsing headers without using the curl's build in cookie functions that require saving to files :)

  • 09-30-2008 8:25 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

    scottklarr:

     I handled the cookies directly via parsing headers without using the curl's build in cookie functions that require saving to files :)



    I'm referring to the part you cron tab your masspay probably xml/txt file <^^> Or you cron query mysql too ?
    Filed under: ,
  • 09-30-2008 8:42 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

    Ah I see what your saying. No I use mysql for all data storage. The affiliate with be able to make a withdraw request and it will into a queue in mysql. The cron will then process the payment and verify that its not risky to do an auto payment for each request (ie: how many requests have they made today? how large is the amount? how long have they been a member? etc - just to make sure some oter script bug doesn't allow them to drain the website owner's account) and then it will take all the approved pending requests and send them out every few minutes. On the users end, they will be taken to a status page that will use ajax to update the status every 30 seconds and let them know as soon as its been processed.

     

    and besides, even if you did use a text file for data storage, it shouldn't be 777 because that infact would not be secure.. you dont need it to be 777 in order for the script to read/write. 755 will allow only the owner to read/write and group/other can only read.

  • 10-01-2008 10:13 PM In reply to

    Re: Alertpay Remote login (PHP & CURL) Help

     please help me.. i cannot figure out how to make this class...

Page 1 of 2 (19 items) 1 2 Next >

  AlertPay - Verified by Visa AlertPay - secure credit card and checking services BBBOnline Reliability Program