I've been programming in PHP for about a year, and this problem, for me, is very tricky
I have existing code which has a button, that, if pressed, causes a reservation to be made in the database.
I'm trying to add support for credit card deposit for the reservation.
Separate from the main application, I created a form which took the credit card info and submitted it to the merchant account for authorization and uses PHP to generate the results page which shows the results of the credit card authorization.
I'm not trying to integrate the two pieces of code together and am finding it hard to get the results back to the code that invoked the credit card collecting form in the first place.
Ideally, I want code like this
if ( $this->Place_Deposit($inputs) ) {
DoCodeNeededForConfirmedDeposit()
}
The problem is essentially this. How do I get the results of the form/ credit card confirmation back to the code that called the Place_Deposit function which creates the form for entering the credit card data? Right now, as soon as the Place_Deposit() function is run, there’s no wait for the results and get the results back from the collected results like there is in Windows programming.
I hope this is a dumb question and it's obvious to someone here, cause I've been searching/digging for a while.
thank you in advance for any input
I have existing code which has a button, that, if pressed, causes a reservation to be made in the database.
I'm trying to add support for credit card deposit for the reservation.
Separate from the main application, I created a form which took the credit card info and submitted it to the merchant account for authorization and uses PHP to generate the results page which shows the results of the credit card authorization.
I'm not trying to integrate the two pieces of code together and am finding it hard to get the results back to the code that invoked the credit card collecting form in the first place.
Ideally, I want code like this
if ( $this->Place_Deposit($inputs) ) {
DoCodeNeededForConfirmedDeposit()
}
The problem is essentially this. How do I get the results of the form/ credit card confirmation back to the code that called the Place_Deposit function which creates the form for entering the credit card data? Right now, as soon as the Place_Deposit() function is run, there’s no wait for the results and get the results back from the collected results like there is in Windows programming.
I hope this is a dumb question and it's obvious to someone here, cause I've been searching/digging for a while.
thank you in advance for any input