Untitled Document
Results 1 to 4 of 4

Thread: Populate payment info in Javascript SDK

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I am having trouble populating some information when opening the ShipRush app. Only the payment type and account number seems to be filled. It's not working on the javascript playroom either. When the carrier is set to FedEx, the company is not filled and when set to UPS, the zip and country are not filled (country stays at US). See below the code used in the playroom.

    var shipment = {
        ShipTo : {
            Name: "John Smith",
            Company: "Acme Widgets",
            Address1: "5th ave S",
            Address2: "#101",
            City: "Seattle",
            State: "WA",
            PostalCode: "98118",
            Country: "US",
            Phone: "(206)332-2233"
        PaymentType: 'ThirdParty',
        PaymentAccountNumber: '555-5555',
        PaymentCompanyName: 'company',
        PaymentCountry: 'CA',
        PaymentPostalCode: '48202',
        CarrierTypeName: "Fedex",
        ServiceTypeName: "Ground",
        Packages: [{
            Weight: "2"
        Shipment: shipment,
        OnShipmentCompleted: function (data) {
            // Return "true" to close shipping form
            return true;
    Edit: I said problems populating some information, but I meant to say some payment fields. I haven't had any trouble with any other fields.
    Last edited by jonesd; 08-16-2019 at 10:33 AM.
    Reply With Quote


Posting Permissions

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