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:
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?
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&oid=80702&sid=162367&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;
}
});
});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?