phpCOIN

Forum Rules Integrated Add-Ons

For questions and issues dealing with add-ons that were later integrated into the phpCOIN base-code, such as the IPN and WYSIWYG add-ons. This forum is for historical purposes only and contains posts relating to before the add-on was integrated into phpCOIN. Now that the add-ons are integrated, our answers WILL be different.

  Reply to this topicStart new topicStart Poll

> return_link_buy, WHM
doulos
Posted: June 06, 2007 05:51 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 69
Member No.: 1,196
Joined: December 25, 2006



QUOTE
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="mysiteurl@mydomain.com">
<input type="hidden" name="item_name" value="<prod_desc>">
<input type="hidden" name="item_number" value="<prod_desc>">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="<ord_unit_cost>">
<input type="hidden" name="return" value="<return_link_buy>">
<input type="hidden" name="cancel_return" value="<return_link_cancel>">
<input type="image" src="h ttps://www.paypal.com/en_US/i/btn/x-click-butcc.gif" border="0" name="submit"
alt="Make payment - it is fast, free and secure!">
</form>

I don't see the "buy=1" anywhere in there.
This is not passing the information to WHM and therefore the website account is not being set up. Also, no emails are being set to the test client. When testing this I am being sent back to my homepage with this url http://mysiteurl/orders/mod.php?merchantRet.x=Return+To+Merchant - I am testing this with the phpcoin test mode set to off.

This is where it takes me after when I set test mode to on : http://mysiteurl/orders/mod.php?mod=orders&mode=return&order_id=1044&buy=1

Is there somewhere I don't remember that I set up the "<return_link_buy> so that WHM knows it is supposed to set the account up?

WHM mod is working properly as I can set up accounts from phpcoin when using the test paypal buy links and also using the free products paylink I set up.

This post has been edited by doulos on June 06, 2007 06:18 pm
PMEmail Poster
Top
cantex
Posted: June 07, 2007 03:01 pm
Quote Post


Chief Cook & Bottle Washer
***

Group: Archive
Posts: 3,252
Member No.: 1
Joined: August 25, 2006



In a paylink something enclosed in the <> brackets is a variable.
phpCOIN will replace the variable at run-time with the actual value.

If PayPal is not sending your client back to the site to complete the order process, then WHM cannot trigger ~ it is fired when the customer returns from PayPal. One thing to check is that you did NOT setup IPN on PayPal site. If you did, they will ignore any returns URLs in the POST and instead send the customer on their way (meaning, no return therefore no WHM)



--------------------
================================================================
Please do not email or PM me with a question:
1: I handle over a thousand emails a day, so chances are yours would be buried in the pile.
2: All questions will only be answered in the support forums, so the answers will be useful to others.

Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)

If you are trying to integrate posted sample code into your website, please take into account any changes in phpCOIN made after the code sample was posted. It is discouraging to spend hours answering questions or trying to track down an issue only to find that the user has a version of phpCOIN that makes the sample irrelevant
PM
Top
doulos
Posted: June 07, 2007 09:49 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 69
Member No.: 1,196
Joined: December 25, 2006



I have verified PayPal IPN is off.
PMEmail Poster
Top
cantex
Posted: June 08, 2007 01:24 pm
Quote Post


Chief Cook & Bottle Washer
***

Group: Archive
Posts: 3,252
Member No.: 1
Joined: August 25, 2006



Start to place an order as if you are a surfer.
When you get to the page that displays the paylink, do NOT submit.
Instead, do a "View Source" and post the paylink portion of it here so we can see what is getting sent to PayPal.
Change only your paypal email address before you POST the code


--------------------
================================================================
Please do not email or PM me with a question:
1: I handle over a thousand emails a day, so chances are yours would be buried in the pile.
2: All questions will only be answered in the support forums, so the answers will be useful to others.

Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)

If you are trying to integrate posted sample code into your website, please take into account any changes in phpCOIN made after the code sample was posted. It is discouraging to spend hours answering questions or trying to track down an issue only to find that the user has a version of phpCOIN that makes the sample irrelevant
PM
Top
doulos
Posted: June 09, 2007 02:54 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 69
Member No.: 1,196
Joined: December 25, 2006



QUOTE
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="myppacct@paypal.com">
<input type="hidden" name="item_name" value="Test prod">
<input type="hidden" name="item_number" value="Test prod">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="return" value="http://www.myhostingco.com/orders/mod.php?mod=orders&mode=return&order_id=1044&buy=1">
<input type="hidden" name="cancel_return" value="http://www.myhostingco.com/orders/mod.php?mod=orders&mode=return&order_id=1044&buy=0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form><br><br><br><br>


I then proceeded to click the buy button and completed the paypal process, but when I clicked on the "Return to Merchant" button, I was returned to this page as described above:

QUOTE
http://www.myhostingco.com/orders/mod.php?merchantRet.x=Return+To+Merchant


NOTE: myhostingco.com is not the name of my website.

This post has been edited by doulos on June 09, 2007 02:55 pm
PMEmail Poster
Top
cantex
Posted: June 09, 2007 10:50 pm
Quote Post


Chief Cook & Bottle Washer
***

Group: Archive
Posts: 3,252
Member No.: 1
Joined: August 25, 2006



The FORM you POSTed at my request does indeed send all valid info to PayPal, including the URL to return to on a success and also on a fail. This means that the problem is on PayPal end somewhere.

Are you 100% sure that you did NOT setup IPN on PayPal site, and also that you did NOT setup a return URL on PayPal site?
We need PayPal to use only the return URLs provided by the paylinks.

You might want to also add another hidden field to the paylink ~ name: rm, value: 2 ~ this will ensure that PayPal POSTs data back to you, rather than trying to GET the page with no parameters


--------------------
================================================================
Please do not email or PM me with a question:
1: I handle over a thousand emails a day, so chances are yours would be buried in the pile.
2: All questions will only be answered in the support forums, so the answers will be useful to others.

Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)

If you are trying to integrate posted sample code into your website, please take into account any changes in phpCOIN made after the code sample was posted. It is discouraging to spend hours answering questions or trying to track down an issue only to find that the user has a version of phpCOIN that makes the sample irrelevant
PM
Top
doulos
Posted: June 10, 2007 12:00 am
Quote Post


Advanced Member
***

Group: Members
Posts: 69
Member No.: 1,196
Joined: December 25, 2006



user posted image


Like this?
CODE
<input type="hidden" name="rm" value="2">

does it matter where in the paylink I put it?

Anyone else having problems like this?

This post has been edited by doulos on June 10, 2007 12:06 am
PMEmail Poster
Top
cantex
Posted: June 10, 2007 01:47 pm
Quote Post


Chief Cook & Bottle Washer
***

Group: Archive
Posts: 3,252
Member No.: 1
Joined: August 25, 2006



Correct on the new field
It does not matter where you put it as long as it is between the FORM and /FORM tags smile.gif

The only other folks I am aware of who have expressed problems have either used encrypted paylinks (so phpCOIN could not replace variables) or did indeed have some sort of return configured on PayPal end.


--------------------
================================================================
Please do not email or PM me with a question:
1: I handle over a thousand emails a day, so chances are yours would be buried in the pile.
2: All questions will only be answered in the support forums, so the answers will be useful to others.

Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)

If you are trying to integrate posted sample code into your website, please take into account any changes in phpCOIN made after the code sample was posted. It is discouraging to spend hours answering questions or trying to track down an issue only to find that the user has a version of phpCOIN that makes the sample irrelevant
PM
Top
doulos
Posted: June 22, 2007 05:07 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 69
Member No.: 1,196
Joined: December 25, 2006



I have been unable to get paypal to pass the buy=1 to phpcoin using the above paylink. I have tried the paylink w/variables, and a paylink generated by paypal (unencrypted so I can look at it). The result is the customer is returned to the index page with no idea what happened other than I took their money. Phpcoin account is set up but no notification is made of such. No whm account is set up.

I am tired of looking at this and considering giving up on the whm-mod (for orders, it works fine when getting the 'free trial'). Just to get the customer back to my phpcoin 'thank you' page, what would I use as my return link if I set up IPN in paypal? Can this be done?
PMEmail Poster
Top
doulos
Posted: June 22, 2007 06:13 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 69
Member No.: 1,196
Joined: December 25, 2006



GRRR,

I just setup and used sandbox.paypal.com to order and it worked fine. But the test client has yet to receive the acknowledgement emails even though they do show as having been generated by phpcoin (in clients). These email DO get sent after setting up a free-trial account.

This post has been edited by doulos on June 22, 2007 06:33 pm
PMEmail Poster
Top
doulos
Posted: June 22, 2007 07:19 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 69
Member No.: 1,196
Joined: December 25, 2006



Sorry about the multiple posts. Still working on it.

This post has been edited by doulos on June 22, 2007 07:22 pm
PMEmail Poster
Top
cantex
Posted: June 22, 2007 08:09 pm
Quote Post


Chief Cook & Bottle Washer
***

Group: Archive
Posts: 3,252
Member No.: 1
Joined: August 25, 2006



QUOTE
But the test client has yet to receive the acknowledgement emails even though they do show as having been generated by phpcoin (in clients). These email DO get sent after setting up a free-trial account.

So the email is sent, but not received?

Sounds like either a spam-filter on the client's end, or a really long delay on one of the SMTP servers.

For example, my smtp server is set to process the queue every five minutes, but my ISP is set to once an hour. This is why I always send messages using a POP account on my own server, rather than the POP account assigned to me by my ISP.


--------------------
================================================================
Please do not email or PM me with a question:
1: I handle over a thousand emails a day, so chances are yours would be buried in the pile.
2: All questions will only be answered in the support forums, so the answers will be useful to others.

Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)

If you are trying to integrate posted sample code into your website, please take into account any changes in phpCOIN made after the code sample was posted. It is discouraging to spend hours answering questions or trying to track down an issue only to find that the user has a version of phpCOIN that makes the sample irrelevant
PM
Top
doulos
Posted: June 22, 2007 08:21 pm
Quote Post


Advanced Member
***

Group: Members
Posts: 69
Member No.: 1,196
Joined: December 25, 2006



I don't have a clue. I was mistaken. The emails were from a sandbox test.

What I mean by 'acknowledgement' email is the one with the whm domain account information. The email like this is being sent:
QUOTE
Hello Test Subject,
The following order acknowledgement is from myhostingco Billing department.
-------------------
Order No: 1044
Order Date: 2007-06-22 17:59:50
Status: active
---------------
Product: hostingpackage
Description: hosting description
Order Cost: cost (USD)
-------------------
This order can be monitored online at the following link (requires login):
h ttp://ww w.myhostingco.com/orders/mod.php?mod=orders&mode=view&ord_id=1044
Thank you for choosing myhostingco for your web service needs.
Billing
billing@myhosingco.com

I have tried 2 times ordering using sandbox and both times the emails were sent, and whm set up the accounts.

I have tried 3 times using the exact same paylink but using paypal.com instead of sandbox.paypal.com and all three time the emails were not sent nor did whm set up the website accounts (however, I AM getting back to the Order Return From Billing page just like I do when using sandbox, or ordering the free-trial).

When are the emails sent? After returning from whm or before, because it gives me the blank page for many seconds before returning me to the Order Return From Billing page, as if whm is trying to setup the account.
I will try using sandbox a few more time to see if I can replicate it, but it costs me money everytime I test in live so I not doing that unless I find out what is going on.

Also, I have tried my isp's POP mail server as well as my hosting POP server.

This post has been edited by doulos on June 22, 2007 08:31 pm
PMEmail Poster
Top
cantex
Posted: June 23, 2007 08:24 pm
Quote Post


Chief Cook & Bottle Washer
***

Group: Archive
Posts: 3,252
Member No.: 1
Joined: August 25, 2006



The email is generated and sent before the API call to WHM, but the results of sending are not displayed until after the API call is completed. In other words, do all processing first then show results of processes

QUOTE
I have tried 3 times using the exact same paylink but using paypal.com instead of sandbox.paypal.com and all three time the emails were not sent nor did whm set up the website accounts (however, I AM getting back to the Order Return From Billing page just like I do when using sandbox, or ordering the free-trial).

Maybe PayPal live is not giving back the "buy/success" parameter?
It seems entirely strange why a test would execute properly but live would not, with the exact same parameters.

Nevertheless, here is a possible workaround ~ I have not tested it, and have no way to test it, so be careful:
Do NOT setup IPN on PayPal site
DO add the IPN add-on to your site and also add the single IPN line to the paylink.
Modify the PIN code to also trigger WHM.
Now WHM would be fired and the account created whether PayPal sends back the correct flag or not
See the bottom of this page -> http://docs.phpcoin.com/index.php/PayPal


--------------------
================================================================
Please do not email or PM me with a question:
1: I handle over a thousand emails a day, so chances are yours would be buried in the pile.
2: All questions will only be answered in the support forums, so the answers will be useful to others.

Help will be given to install/configure/use phpCOIN, but not programming help to modify phpCOIN operations. If you are competent enough to make programming changes, you should be competent enough to read the source code and figure things out :)

If you are trying to integrate posted sample code into your website, please take into account any changes in phpCOIN made after the code sample was posted. It is discouraging to spend hours answering questions or trying to track down an issue only to find that the user has a version of phpCOIN that makes the sample irrelevant
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 


Inscrita el Registro Mercantil de Mallorca Tomo 2140, Hoja No. PM-51034, Folio 135
This website owned and operated by: Technology Services RPVW S.L. CIF# B57345084
Avda Constitucion 48 Bajos Alaro 07340 Baleares SPAIN
Tel:+34 971518362    Fax: +34 971518368    eMail: support@phpcoin.com