cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

AIM - PHP - Thank You Page Help

I can't seem to find an answer to my problem and I'm starting to think I'm making this way harder than it needs to be. I have a simple html form on a php page on a site with an SSL certificate installed. My client wants people to be able to make a donation from the form and answer a few questions about why they're donating. I have everything working, the form sends out, I get an email reciept (as the donor), I get an email reciept (as the merchant) but after I fill out the form I get a white page with the delimited response on it. What I really what is to send the user to a thank you page. I don't need any info echoed back to them about their transaction. Just a thanks and a message about getting an email reciept. I keep playing with the Response/Reciept URL setting in my account settings and trying blocks of code I found here and there from other peoples posts online but I'm just not getting the right combo. Am I using the wrong API? What am I doing wrong?

jasonrit22
Member
3 REPLIES 3

Response/Reciept URL are only use in DPM and SIM.

For AIM, the request and response run thru your website.

Are you form posting(SIM, DPM) to authorize.net or curl(AIM)?

RaynorC1emen7
Expert

I belive I'm using curl(AIM). Maybe not correctly it seems... Here's what I have for my form action:

 

<form action="https://test.authorize.net/gateway/transact.dll" method="post" name="donations" id="donations">

 

Then I have all the fields for the person's info, credit card info, and I have a couple hidden fields at the end of the form:

 

<input name="x_login" type="hidden" id="x_login" value="***" />
<input name="x_tran_key" type="hidden" id="x_tran_key" value="***" />
<input name="x_relay_response" type="hidden" id="x_relay_response" value="FALSE" />
<input name="x_delim_data" type="hidden" id="x_delim_data" value="TRUE" />

 

That's about it. It seems to process. I just can't get the Thank You page after the form is processed and accepted. Only the delimited info.

 

Thanks for your help. I've been working on this on and off for days. I'm just going about it the wrong way I guess.

<form action="https://test.authorize.net/gateway/transact.dll" method="post" name="donations" id="donations">

That a form post. Not curl. so you are using DPM.

 

DO NOT post your "x_tran_key", that is like a password to your loginID. Instead DPM and SIM use x_fp_hash

 

DPM doc is here http://developer.authorize.net/api/dpm/

 

or you could use the http://developer.authorize.net/downloads/samplecode/ for AIM