foreverdita Posted November 20, 2009 Share Posted November 20, 2009 I have a code which loops through order numbers, gets the order auth id and submits the auth id to Payflow through curl. I am requiring the payflow_curl once at the top of the page before looping through my orders. The payflow_curl has a class declared called payflow, which includes all of the functions required to authorizecapture the order. I then loop through my orders, submit a new payflow(authid) for each order and receive my response back from payflow. The problem is that because the curl is required before the looping begins, the class is already declared and does not clear out - so it is bascially submitting the same auth id and receiving a duplicate response. I tried putting my require file within the loop, which would most likely work except that I receive the fatal error: Cannot redeclare class payflow. Is there a way to clear the class and redeclare it? I am not really familiar with classes to the extent that I can solve this problem on my own and I am hoping that someone can offer me some guidance. Thank you much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.