YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Can we send multiple transaction request for dodirectpayment? Options
rahul_shinde
#1 Posted : Monday, June 14, 2010 10:43:41 AM
Rank: Starting Member

Groups: Registered

Joined: 6/14/2010
Posts: 1
Location: India
Hello,

I am looking for solution on dodirectpayment process.

I am sending the multiple payment request using for loop in php but it makes only first payment success and remaining are failed.
Anyone have idea why it is not making all payment success?

Thanks in advance :)

Regards,
Rahul Shinde
Sponsor  
 
nds_webdesign
#2 Posted : Sunday, June 27, 2010 1:18:51 PM
Rank: Junior Member

Groups: Registered

Joined: 10/15/2009
Posts: 159
Location: Omaha, NE USA
try running through the loop but in the loop wait for the response.

while(x > y){

build request
send request
get response
if response is "Success" or "SuccessWithWarning"
Log the data somewhere so you can see your success
if response is "Failure" or "FailureWithWarning"
Log the data somewhere else so you can see the failures

increment your counter variable
End Loop

This way you know if it worked or not because you have to get a response. You would need to add in some error checking to the code to make sure it doesn't give a PHP error. But that should work.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.349 seconds.