cancel
Showing results for 
Search instead for 
Did you mean: 

Track1 data and Track2 data is invalid

Folks,

 

I am making the following call out to the CP API. This is the request string. The errorText is "Track1 data is in invalid format. Track2 data is in invalid format". Can someone look at this and tell me what I am doing wrong here?

 

x_cpversion=1.0&x_login=XXXX&x_market_type=2&x_device_type=4&x_test_request=true&x_tran_key=YYYY&amount=10&x_track1=B5268350343754525^JOHN/DOE         ^1402178450100000343000200000000?&x_track2=5212340078754525=14021014561002000000?"

 

btw, these are not acutal cc numbers so dont get any ideas ;-)

TK
Contributor
1 REPLY 1

Are you URL encoding the track data prior to building the post string?  The response would be expected to come back as invalid if it was submitted exactly as you posted here.

Trevor
Administrator Administrator
Administrator