Thanks for sharing, I'm sorry I never got back to you, got drug into
something at work (non php stuff) so I totally dropped the ball on
helping.  Yea I have to say that anytime I am going back and forth to
any service I almost always write the debug to zero and use the
logging to track stuff.

Sam D


On Tue, Apr 21, 2009 at 9:55 PM, SergioTorresC. <[email protected]> wrote:
>
> 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." <[email protected]> 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 <[email protected]> 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 AT&T Rotary Phonehttp://blog.samdevore.com
>>
>> > On Apr 11, 2009, at 10:34 AM, "SergioTorresC."
>>
>> > <[email protected]> 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 <[email protected]> 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.
>>
>> > >> <[email protected]> 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 <[email protected]> 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.
>> > >>>> <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to