Using Perl with a Custom Signup

Discussion in 'H-Sphere Reseller Hosting' started by thdrought, Apr 21, 2005.

  1. thdrought

    thdrought Perch

    Using PayPal with a Custom Signup

    I posted this message at the PSoft Forums, but, they do not respond anymore since they made a customer only forum which resellers cannot access, so I will post here also.

    I have a custom signup form, using the HSphere XML API, and want to also integrate the PayPal payment system into it. I tested PayPal using the default HSphere signup forms, and it works great (except for the accounts getting un-moderated, but JodoHost is working on that now).

    I notice though, that the last page sends the new customer off too PayPal to make the payment. What fields are being sent to PayPal to ensure that the right account gets credited? Looks to me like it's just the signup_id number with a 'sig-' in front of it. How can I get the values for these fields from the CP? Is it possible with the XML API? I don't see any info on getting this field out of the CP.

    For example, here is the flow...

    1. User goes to my signup form and submits it (XML API)
    2. New HSphere account is created, but awaits payment (i.e. moderated)
    3. XML API requests values for PayPal and populates these values into a <Make Payment> button on my ThankYou page.
    4. After PayPal payment is complete, PayPal redirects customer to my PaymentReceived page.
    5. PayPal IPN makes the request to un-moderate the account.

    I need help with #3.

    Also, does HSphere do the recurring billing with PayPal also? Or does the customer have to do something every billing period, i.e. monthly, yearly, etc.? If the customer has to do something, how do they get notified?

    If nobody know this answer, possible JodoHost can submit this to the PSoft member only forums for a response and post the reply back here? I am sure I'm not the only one that would like this info.

    Thanks,
    Tom
  2. Stephen

    Stephen US Operations Staff Member

    If we don't see a reply here in the next 24 hours I will send this over to customer only at psoft.
  3. arkhost

    arkhost Perch

    thdrought --

    I have read through your previous posts in the thread about custom signup form. I am trying to build a custom signup form using ASP.NET and webservices. However, I'm getting the following error when I try to access the "DNSServices" using SOAP (I'm calling the URI: http://cp.mydomain.com/psoft/servlet/AxisServlet):

    The AXIS engine could not find a target service to invoke! targetService is null

    When I call (for example):
    http://cp.mydomain.com/psoft/servlet/services/DNSServices.jws, I get the "Error 404"

    I assume it is because the DNSServices servlet is not created and running on my CP server at JodoHost. Did you have to request anything special to get the AxisServlets running for your CP?

    The only reason I ask is that it appears that you may be the ONLY JodoHost customer that has the XMLAPIs working, so you are becoming the 'expert' here :)

    Interestingly enough, when I call (through a browser) the following URL:
    http://cp.mydomain.com/psoft/servlet/AxisServlet
    I get the list of services, but the 'wsdl' links don't work, and I noticed that they are each calling some specific service name (like DNSServices, or DomainServices, etc.), but those services don't appear to be running on my CP???

    If you have any code examples that you have got working, I would be most interested in seeing what you have been able to accomplish (if you are so inclined to share any of the information, if not I truly understand). My email address is:
    [email protected]_n_s_u_o_k_._e_d_u
    (minus the underscores)...

    Thanks.

    -- Will Gillen
    -- Arkhost.biz
  4. Emagine

    Emagine Perch Staff Member

    you dont need to request anything.

    all the control pannels are on the same server/ same Control pannel.

    i have the XML API working on a few test scripts and also the Archive manager i have. that uses the user system side of the control pannel.

    but this is in perl also.
  5. thdrought

    thdrought Perch

    I can only make reccomendations here, as it would not benefit me to give someone the code, but, I would look at your proxy and URI values again. They are not correct. For example, what are you pointing the URI too? Right now, nothing.

    The DNS Service class is working at JodoHost. Actually, all of them are working...trust me, I have code for most of the classes now. And since there is only one CP, I am positive that it is working for you too.

    Now, when you call http://cp.yourdomain.com/psoft/servlet/AxisServlet, it does display each Axis class and the functions. Very helpful in trying to find information too, as the HSphere documentation from PSoft.net is incomplete. The WSDL links on this page do not work. After a lot of research, I found that no not many has these links working. Not a big deal. Just open a ticket with JodoHost and ask them to send you the WSDL files in question.

    Another way to see that the XML API is working for you is to call http://cp.yourdomain.com/psoft/servlet/AxisTestServlet.

    Sorry I couldn't be more help. Let me know whether you get your API working or not, as I want to know whether this post was helpful to you.

    Good Luck,
    THDrought

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services