I think I'm doing someting wrong but can't figure out what.
In Account > Settings > Receipt Page > Receipt Method > Default Receipt Link URL
I entered http://mysite.com/sim.php (sample code).
Receipt Metod is POST.
In Account > Settings > Relay Response > Default Relay Response URL > I entered http://mysite.com/relay_reponse.php with only this code:
In sim.php I added to sample coe the following form code
<input type="hidden" name="x_relay_response" value="true">
<input type="hidden" name="x_relay_url" value="https://mysite.com/ relay_reponse.php">
When I submit the credit card form I’ll get the POST array on screen, as I requested on relay_reponse.php file but the URL is still showing https://test.authorize.net/gateway/transact.dll ?!? Shouldn’t it be http://mysite.com/ relay_reponse.php? Why?
"... I just don't understand what he could possibly gain by posting the data from the first relay response page to another relay response page..."
- I think we don't understand each other. The reason I'm doing that is because I can't (or I don't know how) to use session data from mysite,com (relay_respond.php is shown on authorize.net) nor connect to my database for update. Actually I think it's impossible? that's only reason I'm sending POST (submitted) data from relay_response.php (URL authorize.net) to relay_response.php (mysite.com). only reason.
debating about why I use session etc is not relevant here. I just have to update session array as well as database with submitted data.
"... The first page already has all the data,.."
- as a "first page, you mean sim.php or relay_response.php?
"... just do whatever you're going to do there and move on..."
- If you are talking about relay_response.php - how can I connect to my database if I'm on authorize.net server?
""... It's not a matter of security (though I would try to avoid passing around the last 4 of the credit card whenever possible just on general principle), but rather one of it being entirely pointless and increasing the chances of the data being lost before it gets to his database..."
Ok. I think I found (at leat one) thing I was wrong.
Before, when I was trying to connect to mysql in relay_response.php I was gettig the error page
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.
This transaction has been approved.
It is advisable for you to contact the merchant to verify that you will receive the product or service.
and I was thinking I can't connect to mysql.
I just tried again but not using db classes and functions then using mysql_connect() and mysql_select_db() and I was able to connect to my database?!!?!?