Untitled Document
Results 1 to 4 of 4

Thread: Postback does not include tracking number

  1. #1
    I'm moving a client from the shiprush desktop version to the web version for a custom shopping cart. I'm trying to implement the javascript TRequest type of code as outlined in this article https://my.shiprush.com/static.shipr...uest-demo.html

    The javascript that I'm using is this:
    Code:
            $("#shiplink").click(function () {
    
                var shipTransactionXML = '<?xml version="1.0"?><Request><ShipTransaction><Shipment><UPSServiceType>03</UPSServiceType><DeliveryAddress><Address><FirstName>John Doe</FirstName><Company>Web Development</Company><Address1>123 Main St.</Address1><Address2></Address2><City>Anytown</City><State>CA</State><PostalCode>90210</PostalCode><Country>US</Country><Phone>1231231234</Phone></Address></DeliveryAddress><PostbackUrl>https://www.ourwebsite.com/postbackurl.aspx?otype=0&amp;oid=80702&amp;sid=162367&amp;rid=0</PostbackUrl><PostbackContentType>TRequest</PostbackContentType><Package><PackageReference1>Ord#80702</PackageReference1><PackageReference2></PackageReference2></Package></Shipment></ShipTransaction></Request>'
    
                shipRushClient.Open(
                {
                    ShipTransactionRequest: shipTransactionXML,
                    OpenInNewWindow: true,
                    OnShipmentCompleted: function (data) {
                        return true;
                    }
                });
            });
    The domain in the postback url has been changed for privacy.
    I get the postback and the querystring is intact with what was passed to ShipRush but there are no forms values being sent. I have a data logger setup on the postback url that logs all querystring and form values. The desktop version worked fine and and would postback the tracking number among other values.

    Any idea what the problem is?

  2. #2

    Join Date
    Apr 2004
    Posts
    16,645
    SYSOPS is offline
    I tested directly from that page to a test postback URL site, https://webhook.site/

    I dropped that into our page and ran a shipment. I see postback to the URL above, and that includes things like account used and tracking #.

    Can you send what you're capturing in your postback to support at shiprush dot com (in a txt of the raw XML that is sent to your URL)?

    Thank you,
    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  3. #3
    How is it being posted back? Is it as form values or as an XML document? With the desktop version the tracking number was obtained via Request.Form("TrackingNumber")

  4. #4

    Join Date
    Apr 2004
    Posts
    16,645
    SYSOPS is offline
    It is posted back as XML.

    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •