Re: authorize.net redirect
Sam, I found the problem was produced by a combination of: an error in my cakephp code and having Configure::write('debug', 3); in my app core.php file Authorize.net does not like cake's debug message. Once I fixed my code errors and set debug to 0 I was able to access authorize.net payment form. Of course, I had to comment the redirection part to be able to see CakePHP's error messages. Thank you for your help. There is another problem with Authorize.net, they don't like CakePHP's formated URLs (actually, it's relative URLs what they don't like). If you use them in the x_relay_URL field page, it will not be rendered correctly. On Apr 13, 12:42 pm, SergioTorresC. sergiotorr...@gmail.com wrote: Thank you Sam, I tried using PHP's $_POST and got the same negative result. No data. I asked authorize.net live tech support and they told me it could be a timeout problem. Since I was using my PC for the test, I moved to the server and tries again. This time I got a web page, as if authorize.net was not trying to reach my invoicepayments/receipt action, but something else. I asked tech support if the problem could be CakePHP's custom URLs and they answered maybe, but did not provide any further information. Have you found something about this problem? Thank you, On Apr 11, 6:58 pm, Sam DeVore sdev...@gmail.com wrote: I don't think you will see the data from Authorize in this-data I think you will have to look at the raw data. I can look at it on Monday but my wife has named my laptop for Easter weekend. Sam d === Sent from my ATT Rotary Phonehttp://blog.samdevore.com On Apr 11, 2009, at 10:34 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Samuel, Sorry to bother you again. Now I am having problems with authorize.net relay response: I am using a testing account, so all my transactions go to https://test.authorize.net... I had my form posted to authorize.net I am shown their hosted payment form. My payment is processed right (the test credit card gets charged). But, there is an error when authorize.net tries to send the transaction report to my web site. I am receiving the following error message An error occurred while trying to report this transaction to the merchant. My x_relay_URL value is 'http://[myserver]/invoicepayments/receipt' I am sure authorize.net tries to post to my x_relay_URL (I receive an error message when the receipt action is not allowed by the auth component). I tried to see authorize.net's answer using: In the controller receipt action: pr($this-data); In the receipt action view: ?php echo $data); I tried leaving empty the controller action and view and then examining firebug/firephp console. Nothing worked. Can you help me with this? Thank you, On Mar 13, 1:43 pm, Samuel DeVore sdev...@gmail.com wrote: I had a similar problem and I created a page in between them filling out 'my form' and sending them toAuthorize.net(it is a confirmation looking page and explains why they are going to a new site) this page is a form of just hidden fields and a 'Continue' (the submit button) and a 'Cancel' button that takes them back to the previous page. Sam D On Fri, Mar 13, 2009 at 11:34 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Thank you for your help Samuel, I am not sure I understand what you say. Do you mean you pass the client all theauthorize.nethidden fields and set the form action to be processed byauthorize.netinstead of your app? In this case I would have problems with this solution, since I need to do some tasks before callingauthorize.netsecure payment form. Any ideas? Thank you again, On Mar 12, 9:57 am, Samuel DeVore sdev...@gmail.com wrote: I have found that I have to make my forms actually point to Auth dot net's servers not make the post request in php. Sam D On Thu, Mar 12, 2009 at 8:47 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Hi there, I am trying to hook up my cake application withauthorize.netservice, to use their secure payment form and Relay Response, but just can't get it to work. I have a form where my customer reports the payment amount. The form is processed in the back end class controller like this: 1. I update all needed tables. 2. I instantiate cake HttpSocket class into $MyHS. 3. I build all required fields forauthorize.netand put them into a $post array 4. I call $response = $MyHS-post('authorize.neturl', $post) According toauthorize.netdocs my customer should be presented their secure payment form, but that does not happens. I even can't be sure the post was made. Can anybody help? Thanks in advance, Sergio Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed
Re: authorize.net redirect
Thank you Sam, I tried using PHP's $_POST and got the same negative result. No data. I asked authorize.net live tech support and they told me it could be a timeout problem. Since I was using my PC for the test, I moved to the server and tries again. This time I got a web page, as if authorize.net was not trying to reach my invoicepayments/receipt action, but something else. I asked tech support if the problem could be CakePHP's custom URLs and they answered maybe, but did not provide any further information. Have you found something about this problem? Thank you, On Apr 11, 6:58 pm, Sam DeVore sdev...@gmail.com wrote: I don't think you will see the data from Authorize in this-data I think you will have to look at the raw data. I can look at it on Monday but my wife has named my laptop for Easter weekend. Sam d === Sent from my ATT Rotary Phonehttp://blog.samdevore.com On Apr 11, 2009, at 10:34 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Samuel, Sorry to bother you again. Now I am having problems with authorize.net relay response: I am using a testing account, so all my transactions go to https://test.authorize.net... I had my form posted to authorize.net I am shown their hosted payment form. My payment is processed right (the test credit card gets charged). But, there is an error when authorize.net tries to send the transaction report to my web site. I am receiving the following error message An error occurred while trying to report this transaction to the merchant. My x_relay_URL value is 'http://[myserver]/invoicepayments/receipt' I am sure authorize.net tries to post to my x_relay_URL (I receive an error message when the receipt action is not allowed by the auth component). I tried to see authorize.net's answer using: In the controller receipt action: pr($this-data); In the receipt action view: ?php echo $data); I tried leaving empty the controller action and view and then examining firebug/firephp console. Nothing worked. Can you help me with this? Thank you, On Mar 13, 1:43 pm, Samuel DeVore sdev...@gmail.com wrote: I had a similar problem and I created a page in between them filling out 'my form' and sending them toAuthorize.net(it is a confirmation looking page and explains why they are going to a new site) this page is a form of just hidden fields and a 'Continue' (the submit button) and a 'Cancel' button that takes them back to the previous page. Sam D On Fri, Mar 13, 2009 at 11:34 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Thank you for your help Samuel, I am not sure I understand what you say. Do you mean you pass the client all theauthorize.nethidden fields and set the form action to be processed byauthorize.netinstead of your app? In this case I would have problems with this solution, since I need to do some tasks before callingauthorize.netsecure payment form. Any ideas? Thank you again, On Mar 12, 9:57 am, Samuel DeVore sdev...@gmail.com wrote: I have found that I have to make my forms actually point to Auth dot net's servers not make the post request in php. Sam D On Thu, Mar 12, 2009 at 8:47 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Hi there, I am trying to hook up my cake application withauthorize.netservice, to use their secure payment form and Relay Response, but just can't get it to work. I have a form where my customer reports the payment amount. The form is processed in the back end class controller like this: 1. I update all needed tables. 2. I instantiate cake HttpSocket class into $MyHS. 3. I build all required fields forauthorize.netand put them into a $post array 4. I call $response = $MyHS-post('authorize.neturl', $post) According toauthorize.netdocs my customer should be presented their secure payment form, but that does not happens. I even can't be sure the post was made. Can anybody help? Thanks in advance, Sergio Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: authorize.net redirect
Samuel, Sorry to bother you again. Now I am having problems with authorize.net relay response: I am using a testing account, so all my transactions go to https://test.authorize.net... I had my form posted to authorize.net I am shown their hosted payment form. My payment is processed right (the test credit card gets charged). But, there is an error when authorize.net tries to send the transaction report to my web site. I am receiving the following error message An error occurred while trying to report this transaction to the merchant. My x_relay_URL value is 'http://[myserver]/invoicepayments/receipt' I am sure authorize.net tries to post to my x_relay_URL (I receive an error message when the receipt action is not allowed by the auth component). I tried to see authorize.net's answer using: In the controller receipt action: pr($this-data); In the receipt action view: ?php echo $data); I tried leaving empty the controller action and view and then examining firebug/firephp console. Nothing worked. Can you help me with this? Thank you, On Mar 13, 1:43 pm, Samuel DeVore sdev...@gmail.com wrote: I had a similar problem and I created a page in between them filling out 'my form' and sending them toAuthorize.net(it is a confirmation looking page and explains why they are going to a new site) this page is a form of just hidden fields and a 'Continue' (the submit button) and a 'Cancel' button that takes them back to the previous page. Sam D On Fri, Mar 13, 2009 at 11:34 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Thank you for your help Samuel, I am not sure I understand what you say. Do you mean you pass the client all theauthorize.nethidden fields and set the form action to be processed byauthorize.netinstead of your app? In this case I would have problems with this solution, since I need to do some tasks before callingauthorize.netsecure payment form. Any ideas? Thank you again, On Mar 12, 9:57 am, Samuel DeVore sdev...@gmail.com wrote: I have found that I have to make my forms actually point to Auth dot net's servers not make the post request in php. Sam D On Thu, Mar 12, 2009 at 8:47 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Hi there, I am trying to hook up my cake application withauthorize.netservice, to use their secure payment form and Relay Response, but just can't get it to work. I have a form where my customer reports the payment amount. The form is processed in the back end class controller like this: 1. I update all needed tables. 2. I instantiate cake HttpSocket class into $MyHS. 3. I build all required fields forauthorize.netand put them into a $post array 4. I call $response = $MyHS-post('authorize.neturl', $post) According toauthorize.netdocs my customer should be presented their secure payment form, but that does not happens. I even can't be sure the post was made. Can anybody help? Thanks in advance, Sergio Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: authorize.net redirect
Thank you for your help Samuel, I am not sure I understand what you say. Do you mean you pass the client all the authorize.net hidden fields and set the form action to be processed by authorize.net instead of your app? In this case I would have problems with this solution, since I need to do some tasks before calling authorize.net secure payment form. Any ideas? Thank you again, On Mar 12, 9:57 am, Samuel DeVore sdev...@gmail.com wrote: I have found that I have to make my forms actually point to Auth dot net's servers not make the post request in php. Sam D On Thu, Mar 12, 2009 at 8:47 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Hi there, I am trying to hook up my cake application with authorize.net service, to use their secure payment form and Relay Response, but just can't get it to work. I have a form where my customer reports the payment amount. The form is processed in the back end class controller like this: 1. I update all needed tables. 2. I instantiate cake HttpSocket class into $MyHS. 3. I build all required fields for authorize.net and put them into a $post array 4. I call $response = $MyHS-post('authorize.net url', $post) According to authorize.net docs my customer should be presented their secure payment form, but that does not happens. I even can't be sure the post was made. Can anybody help? Thanks in advance, Sergio Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: authorize.net redirect
Thank you Samuel, I think your solution is valid and it's going to solve my problem. Have a nice day, Sergio. On Mar 13, 1:43 pm, Samuel DeVore sdev...@gmail.com wrote: I had a similar problem and I created a page in between them filling out 'my form' and sending them to Authorize.net (it is a confirmation looking page and explains why they are going to a new site) this page is a form of just hidden fields and a 'Continue' (the submit button) and a 'Cancel' button that takes them back to the previous page. Sam D On Fri, Mar 13, 2009 at 11:34 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Thank you for your help Samuel, I am not sure I understand what you say. Do you mean you pass the client all the authorize.net hidden fields and set the form action to be processed by authorize.net instead of your app? In this case I would have problems with this solution, since I need to do some tasks before calling authorize.net secure payment form. Any ideas? Thank you again, On Mar 12, 9:57 am, Samuel DeVore sdev...@gmail.com wrote: I have found that I have to make my forms actually point to Auth dot net's servers not make the post request in php. Sam D On Thu, Mar 12, 2009 at 8:47 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Hi there, I am trying to hook up my cake application with authorize.net service, to use their secure payment form and Relay Response, but just can't get it to work. I have a form where my customer reports the payment amount. The form is processed in the back end class controller like this: 1. I update all needed tables. 2. I instantiate cake HttpSocket class into $MyHS. 3. I build all required fields for authorize.net and put them into a $post array 4. I call $response = $MyHS-post('authorize.net url', $post) According to authorize.net docs my customer should be presented their secure payment form, but that does not happens. I even can't be sure the post was made. Can anybody help? Thanks in advance, Sergio Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
authorize.net redirect
Hi there, I am trying to hook up my cake application with authorize.net service, to use their secure payment form and Relay Response, but just can't get it to work. I have a form where my customer reports the payment amount. The form is processed in the back end class controller like this: 1. I update all needed tables. 2. I instantiate cake HttpSocket class into $MyHS. 3. I build all required fields for authorize.net and put them into a $post array 4. I call $response = $MyHS-post('authorize.net url', $post) According to authorize.net docs my customer should be presented their secure payment form, but that does not happens. I even can't be sure the post was made. Can anybody help? Thanks in advance, Sergio Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cannot execute javascript
Brian, Thank you for your help. I tried to move my cake installation to my root web folder and now everything is working. I guess, in the future, I will examine the subfolder configuration. Thank you again, Sergio On Mar 7, 11:27 am, brian bally.z...@gmail.com wrote: I did receive the email that you sent directly to me. I replied: -- snip -- I guess I'd have to agree with that. But, as I said, I don't have any experience using a subdirectory. I know it can work, though. Check some of the links here: http://www.google.com/search?source=ighl=enrlz=1G1GGLQ_ENUS271=q=... You can probably ignore the Apache alias ones, unless you have access to httpd.conf. Other than that, though, I can't really say which is the best (correct) method to use. -- snip -- Sorry, I don't know of any other solution. On Fri, Mar 6, 2009 at 5:33 PM, SergioTorresC. sergiotorr...@gmail.com wrote: Brian, I have tries twice to send you an answer, but I don't get it published... I said cake is my web_root directory. For examplehttp://localhost/cake/customers/loginis a valid URL in my setup and it is working, so I guess the tag src /cake/js/prototype sgould work, no? On Mar 5, 10:33 am, brian bally.z...@gmail.com wrote: On Thu, Mar 5, 2009 at 12:32 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Brian, Thank you for your answer. You are right, it was a typo. I am not using the extensions when calling the scripts. When I see the view source the links appear like this: script type=text/javascript src=/cake/js/prototype.js/script script type=text/javascript src=/cake/js/listinvoices.js/ script And both files are, indeed, under cake/webroot/js Since my Www_Root variable is C:\Inetpub\wwwroot\cake\app\webroot\ I understand the tags' src is correct, maybe not? No, it should begin with '/js/...' if webroot dir is root. But you mentioned that you'd tried several ways; is this the result of using $javascript-link('prototype')? That should be the correct one. Keep in mind that you should also be able to open the JS file directly in your browser by pointing it to this URL: /js/prototype.js If that works, you'll know that Cake is set up properly for your directory structure. It's a bit confusing in that, when using the link() method, you leave off the initial js directory, as well as the extension. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cannot execute javascript
Brian, I have tries twice to send you an answer, but I don't get it published... I said cake is my web_root directory. For example http://localhost/cake/customers/login is a valid URL in my setup and it is working, so I guess the tag src /cake/js/prototype sgould work, no? On Mar 5, 10:33 am, brian bally.z...@gmail.com wrote: On Thu, Mar 5, 2009 at 12:32 AM, SergioTorresC. sergiotorr...@gmail.com wrote: Brian, Thank you for your answer. You are right, it was a typo. I am not using the extensions when calling the scripts. When I see the view source the links appear like this: script type=text/javascript src=/cake/js/prototype.js/script script type=text/javascript src=/cake/js/listinvoices.js/ script And both files are, indeed, under cake/webroot/js Since my Www_Root variable is C:\Inetpub\wwwroot\cake\app\webroot\ I understand the tags' src is correct, maybe not? No, it should begin with '/js/...' if webroot dir is root. But you mentioned that you'd tried several ways; is this the result of using $javascript-link('prototype')? That should be the correct one. Keep in mind that you should also be able to open the JS file directly in your browser by pointing it to this URL: /js/prototype.js If that works, you'll know that Cake is set up properly for your directory structure. It's a bit confusing in that, when using the link() method, you leave off the initial js directory, as well as the extension. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cannot execute javascript
Brian, Thank you for your answer. You are right, it was a typo. I am not using the extensions when calling the scripts. When I see the view source the links appear like this: script type=text/javascript src=/cake/js/prototype.js/script script type=text/javascript src=/cake/js/listinvoices.js/ script And both files are, indeed, under cake/webroot/js Since my Www_Root variable is C:\Inetpub\wwwroot\cake\app\webroot\ I understand the tags' src is correct, maybe not? On Mar 4, 10:13 pm, brian bally.z...@gmail.com wrote: On Wed, Mar 4, 2009 at 8:09 PM, SergioTorresC. sergiotorr...@gmail.com wrote: ?php e($javascript-link('prototype.js')); ? Is this a typo? I ask because, further on in your mail, you leave out the .js, which is the correct way. Always leave out the extension for both JS CSS files. ?php e($scripts_for_layout); ? In myview.ctp file ?php e($javascript-link('listinvoices', false)); ? Firebug reports for both files a syntax error on line 1. Line 1 has the document declaration !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; I checked on the web and the declaration seems to be ok. This is the same thing I see when the path to a JS file is incorrect. You didn't mention what the script tag's src looks like (when you view source). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Cannot execute javascript
I can't get to execute javascripts from CakePHP-Javascript helper. I am trying to call myscript.js from myview.ctp I have the following code lines to achieve this: In app_controller.php file: var $helpers = array('Html', 'Form', 'Javascript'); In default.ctp file header section: ?php e($javascript-link('prototype.js')); ? ?php e($scripts_for_layout); ? In myview.ctp file ?php e($javascript-link('listinvoices', false)); ? Firebug reports for both files a syntax error on line 1. Line 1 has the document declaration !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; I checked on the web and the declaration seems to be ok. When I try to read my js files content from Firebug debug panel all I get is a web page stating Missing Controller ... JcController could not be found I looked the web for the error message and found articles saying it is caused by missing .js files being called. Firebug reports the called .js files are under localhost/cake/js. I checked and both .js called are physically under C:\Inetpub\wwwroot \cake\webroot\js. Even though all my calls to views and actions work, I checked my environment variables and they seem to be Ok. [Root] = C:\Inetpub\wwwroot\cake\app\ [App] = Is empty, Do I need to assign it a value? [Www_Root] = C:\Inetpub\wwwroot\cake\app\webroot\ ) I tried to include the absolute path in the javascript helper link. Instead of ?php e($javascript-link('prototype')); ? I wrote ?php e($javascript-link('/cake/webroot/js/prototype')); ? It did not worked. I thought maybe it was an access right problem. I checked and the js folder has Read and Execute Scripts only permission and is allowed to be accessed by the IUSR_VIRTUAL-TGM user. Can anybody help me with this? I am developing from a MS Virtual Machine with the following set up: Host: MS Vista Ultimate 64 bits SP 1. Virtual Machine: OS :Windows XP Pro SP 3 build 2600 http Server : IIS 5.1 with CGI/FastCGI API PHP : 5.2.6 Cake : 1.2.18004 I am using Mod_rewrite.dll. My Mod_rewrite.ini file says: Debug 0 Reload 5000 RewriteCond HTTP_HOST localhost RewriteRule ^/cake/?$/cake/index.php?REQUEST_URI=index.php [L] RewriteRule ^(/cake/.*)$ /cake/index.php?REQUEST_URI=$1 [L] Sergio Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---