Need to edit PHP script to initiate by clicking a button titled "Add Card"
Once it initiates, I need it to first run a curl call and POST the Customer ID to a specified URL.
After the POST is complete I need the script to continuously run the remainder of the script (for at least a minute) until it finds the value populated in the "order_url_string" field as it may take up to 30 seconds for the field to populate after the inital POST was completed.
The URL in the iFrame is valid for 10min. After it times out I would like another button to pop back up and allow the user to click it again to reload the process.
Also during each reload I would like the client to see a "Retrieving Secure Window..." message and some sort of time processing indicator
With this new config the client will always have the ability to get a new Credit Card window regardless if they canceled it or if it times out.