I am working on a payment processing application. My app will send the information to the payment server and in return I will get an approved or declined response. Since I am fairly early in the development process I would like to be able to test my code without actually sending a post to a real payment processor.
What I have be trying to figure out is, can I post my form to another php file and have that file automatically post back either a good or bad status code in the form of a post? Could I use the header function to accomplish this goal? The response I receive back needs to be in the form of a post variable.
Thanks
auto returning a post value
Moderator: General Moderators
Man, I know there is a good way of doing this. I'm just drawing a blank.
My hack of a solution would be to put it in a form, and have javascript submit the form on page load. =/
My hack of a solution would be to put it in a form, and have javascript submit the form on page load. =/
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
-
jeffery
- Forum Contributor
- Posts: 105
- Joined: Mon Apr 03, 2006 3:13 am
- Location: Melbourne, Australia
- Contact:
Re: auto returning a post value
Most Payment Gateways provide a test account or test numbers for development purposes. Ask you payment gateway provider for the information.stagehand wrote:I am working on a payment processing application. My app will send the information to the payment server and in return I will get an approved or declined response. Since I am fairly early in the development process I would like to be able to test my code without actually sending a post to a real payment processor.
What I have be trying to figure out is, can I post my form to another php file and have that file automatically post back either a good or bad status code in the form of a post? Could I use the header function to accomplish this goal? The response I receive back needs to be in the form of a post variable.
Thanks
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Indeed, cURL is what you are after.