Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Linkpoint_API 1.2a Problem - An order ID is required for this transaction


dononeil

Recommended Posts

I just installed the Linkpoint API v1.2a and am trying to test it out to make sure it's working ok. I have the config in debug mode and test mode...

 

When I try to run a charge with the test card number I get the errror:

 

An order ID is required for this transaction.

 

It appears that no order ID is being passed to the processor to do the postauth. Maybe this is a bug specific to the testing/debug mode, but I don't want to try charging a bunch of cards in live mode!!

 

The code shows the OID being commented out... and if not set, gateway will assign one, but the gateway doesn't seem to be setting an OID.

 

My site url is http://www.guiltypleasuresbakery.com/store

 

Here's the debug output:

 

at curl_process, incoming data:

host = secure.linkpt.net

port = 1129

keyfile = /home/gpbakery/domains/guiltypleasuresbakery.com/private_html/store/includes/modules/payment/linkpoint_api/1001156062.pem

configfile = 1001156062

ordertype = PREAUTH

result = GOOD

transactionorigin = ECI

ponumber = 1002

taxexempt = Y

terminaltype = UNSPECIFIED

ip = 72.193.85.114

chargetotal = 181.87

cardnumber = 4111111111111111

cardexpmonth = 05

cardexpyear = 07

cvmindicator = not_provided

cvmvalue =

userid = 2

name = Don O'Neil

company =

address1 = 5513 Azure Ridge Drive

address2 =

city = Las Vegas

state = NV

country = US

phone = 702-496-1842

addrnum = 5513 Azure Ridge Drive

zip = 89130

sname = Don O'Neil

saddress1 = 5513 Azure Ridge Drive

saddress2 =

scity = Las Vegas

sstate = NV

szip = 89130

scountry = US

items =

debugging = true

 

sending xml string:

<order><orderoptions><ordertype>PREAUTH</ordertype><result>GOOD</result></orderoptions><creditcard><cardnumber>4111111111111111</cardnumber><cardexpmonth>05</cardexpmonth><cardexpyear>07</cardexpyear><cvmvalue></cvmvalue><cvmindicator>not_provided</cvmindicator></creditcard><billing><name>Don O'Neil</name><company></company><address1>5513 Azure Ridge Drive</address1><city>Las Vegas</city><state>NV</state><zip>89130</zip><country>US</country><userid>2</userid><phone>702-496-1842</phone><addrnum>5513 Azure Ridge Drive</addrnum></billing><shipping><name>Don O'Neil</name><address1>5513 Azure Ridge Drive</address1><city>Las Vegas</city><state>NV</state><zip>89130</zip><country>US</country></shipping><transactiondetails><ponumber>1002</ponumber><taxexempt>Y</taxexempt><terminaltype>UNSPECIFIED</terminaltype><ip>72.193.85.114</ip><transactionorigin>ECI</transactionorigin></transactiondetails><merchantinfo><configfile>1001156062</configfile><keyfile>/home/gpbakery/domains/guiltypleasuresbakery.com/private_html/store/includes/modules/payment/linkpoint_api/1001156062.pem</keyfile><host>secure.linkpt.net</host><port>1129</port></merchantinfo><payment><chargetotal>181.87</chargetotal></payment> <items> <item> <id>22{5}10</id> <description>Unreal Tournament</description> <quantity>1</quantity> <price>89.99</price> </item> <item> <id>21</id> <description>SWAT 3: Close Quarters Battle</description> <quantity>1</quantity> <price>79.99</price> </item> </items> </order>

 

 

server responds:

<r_csp></r_csp><r_time></r_time><r_ref></r_ref><r_error></r_error><r_ordernum></r_ordernum><r_message>This is a test transaction and will not show up in the Reports</r_message><r_code></r_code><r_tdate>Tue Apr 3 17:54:18 2007</r_tdate><r_score></r_score><r_authresponse></r_authresponse><r_approved>APPROVED</r_approved><r_avs></r_avs>

 

at curl_process, incoming data:

host = secure.linkpt.net

port = 1129

keyfile = /home/gpbakery/domains/guiltypleasuresbakery.com/private_html/store/includes/modules/payment/linkpoint_api/1001156062.pem

configfile = 1001156062

ordertype = POSTAUTH

result = GOOD

transactionorigin = ECI

ponumber = 1002

taxexempt = Y

terminaltype = UNSPECIFIED

ip = 72.193.85.114

chargetotal = 181.87

cardnumber = 4111111111111111

cardexpmonth = 05

cardexpyear = 07

cvmindicator = not_provided

cvmvalue =

userid = 2

name = Don O'Neil

company =

address1 = 5513 Azure Ridge Drive

address2 =

city = Las Vegas

state = NV

country = US

phone = 702-496-1842

addrnum = 5513 Azure Ridge Drive

zip = 89130

sname = Don O'Neil

saddress1 = 5513 Azure Ridge Drive

saddress2 =

scity = Las Vegas

sstate = NV

szip = 89130

scountry = US

items =

debugging = true

oid =

 

sending xml string:

<order><orderoptions><ordertype>POSTAUTH</ordertype><result>GOOD</result></orderoptions><creditcard><cardnumber>4111111111111111</cardnumber><cardexpmonth>05</cardexpmonth><cardexpyear>07</cardexpyear><cvmvalue></cvmvalue><cvmindicator>not_provided</cvmindicator></creditcard><billing><name>Don O'Neil</name><company></company><address1>5513 Azure Ridge Drive</address1><city>Las Vegas</city><state>NV</state><zip>89130</zip><country>US</country><userid>2</userid><phone>702-496-1842</phone><addrnum>5513 Azure Ridge Drive</addrnum></billing><shipping><name>Don O'Neil</name><address1>5513 Azure Ridge Drive</address1><city>Las Vegas</city><state>NV</state><zip>89130</zip><country>US</country></shipping><transactiondetails><oid></oid><ponumber>1002</ponumber><taxexempt>Y</taxexempt><terminaltype>UNSPECIFIED</terminaltype><ip>72.193.85.114</ip><transactionorigin>ECI</transactionorigin></transactiondetails><merchantinfo><configfile>1001156062</configfile><keyfile>/home/gpbakery/domains/guiltypleasuresbakery.com/private_html/store/includes/modules/payment/linkpoint_api/1001156062.pem</keyfile><host>secure.linkpt.net</host><port>1129</port></merchantinfo><payment><chargetotal>181.87</chargetotal></payment> <items> <item> <id>22{5}10</id> <description>Unreal Tournament</description> <quantity>1</quantity> <price>89.99</price> </item> <item> <id>21</id> <description>SWAT 3: Close Quarters Battle</description> <quantity>1</quantity> <price>79.99</price> </item> </items> </order>

 

 

server responds:

<r_csp></r_csp><r_time></r_time><r_ref></r_ref><r_error>SGS-020009: An order ID is required for this transaction type.</r_error><r_ordernum></r_ordernum><r_message></r_message><r_code></r_code><r_tdate></r_tdate><r_score></r_score><r_authresponse></r_authresponse><r_approved></r_approved><r_avs></r_avs>

 

Any ideas on how to fix this? I'm using the module with YourPay, which is powered by linkpoint

Link to comment
Share on other sites

  • 2 weeks later...
  • 7 months later...
I added a patch if you look to the link point API.

http://www.oscommerce.com/community/contri...earch,linkpoint

It works for me

 

Although, you can sent an order id because it's created after that the infos are submitted to LinkPoint

 

asteck,

 

I suggest you go look at the contribution page again as we put up some notes about anitaa's contrib and your subsequent patch.

 

Dononeil,

 

It looks like your in testing mode which we never validated, this is something i will try to look at in the future. The test method steps through a different process that does a pre-auth and then post-auth based on your output below. This fails because no sale is performed and we have written the code to perform a pre-auth and then a sale so that everything is checked and processed in real-time rather than having to go in the panel later and perform additional operations.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...