XML api . Order Status?

General ShopSite user discussion

XML api . Order Status?

Postby alexvp » Fri Jun 21, 2013 9:37 am

hello

I use oAuth php code to get orders
If order was paid by credit card , I didn't see <Payment><CreditCard><OrderProcessingInfo> in xml

is there OTHER way to detect order's status (complete/pending/..)?

thank,alex
alexvp
 
Posts: 3
Joined: Fri Jun 21, 2013 8:41 am

Re: XML api . Order Status?

Postby Jim » Fri Jun 21, 2013 10:15 am

Are you using secure urls for your oauth connection? I believe that no credit card info is included unless you are using secure urls and you have included the 'pay' parameter. See http://shopsite.com/help/11.2/en-US/sc/pro/orders.download.format.xml-auto.html
pay - Include payment information (credit card details) in the download. The recommended value for this parameter is "yes". If this parameter is not included in the command line or if a secure connection is not used, the download will not include payment information.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: XML api . Order Status?

Postby alexvp » Sat Jun 22, 2013 3:40 am

hi

yes, I use $url = "https://..../shop-bin/sc/authorize.cgi";
I added echo $endpointurl; to "oauth.php"
I got "https://....shop-bin/sc/db_xml.cgi"
so I use SSL

I checked next checkboxes in Utilities > Applications > Edit Application
+ Orders
+ Include Credit Card Payment Info (requires an SSL connection)

I still see only <Payment><CreditCard><Issuer> for CC transactions
thanks,alex
alexvp
 
Posts: 3
Joined: Fri Jun 21, 2013 8:41 am

Re: XML api . Order Status?

Postby loren_d_c » Tue Jun 25, 2013 9:33 am

Are you including the 'pay=yes' parameter in your call to db_xml.cgi? If not, credit card information will not be included.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: XML api . Order Status?

Postby alexvp » Tue Jun 25, 2013 10:46 pm

yes, I don't use this parameter
thank you!

I coded small library initially and downloaded customers&products only, so I forget about this parameter
alexvp
 
Posts: 3
Joined: Fri Jun 21, 2013 8:41 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 67 guests