Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7081511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:55:49+00:00 2026-05-28T06:55:49+00:00

I am attempted to create a new Sales Order in Netsuite using PHPtoolkip_v2010.php and

  • 0

I am attempted to create a new Sales Order in Netsuite using PHPtoolkip_v2010.php and add a authorization id to its payment method.

I can create the Sales Order and set the payment method to PayPal, but I am unable to set the AuthId. If I try to set the Transaction Id I’m successful, but as soon as I switch the code to do an auth it fails.

Here’s a snippet of the code I’m trying:

$sales_order_data = array(
    'entity'=> new nsRecordRef(array('internalId' => $customer_id)),
    'tranDate'=>date('c', strtotime($order_date)),
    'itemList'=>array('item'=>array()),
);

//...

$sales_order_data['paymentMethod'] = array('internalId'=>7);

//$sales_order_data['payPalTranId'] = $paypal_transaction_id;
$sales_order_data['paypalAuthId'] = $paypal_transaction_id;

$sales_order = new nsComplexObject('SalesOrder', $sales_order_data);
$new_sales_order = $ns->add($sales_order);

If I get an existing Paypal order through the API and var_dump it I see the fields payPalTranId and paypalAuthId are set. Notice that the seconds P in Paypal is capitalized for the TranId but not for the AuthId. But I have tried both capped and uncapped for AuthId with no results.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:55:49+00:00Added an answer on May 28, 2026 at 6:55 am

    It looks like what I wanted to do was impossible.

    I’ve found this statement on from Celigo, a company that specializes in integrating Magento with Netsuite.

    Both authorization and capture must be done on the Magento side.
    NetSuite does not facilitate capture of payments that have been
    authorized outside NetSuite. The NetSuite field that needs to be set
    to indicate the authorization status, ‘PayPal Status’, is read-only
    and thus cannot be set. The transaction cannot be processed unless
    this field is set.

    While they don’t explicitly state that I can’t set the AuthId, my goal in doing so was to authroize the payment outside of Netsuite and capture within. If that’s not possible, then setting the AuthId is pointless for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Disclaimer: super new to rails. I'm using Rails 3.2 Anyways, I'm trying to create
I need to create a class object dynamically. I attempted this using the dynamic
So I installed the new MVC3 tooling update and attempted to create a new
I have attempted to create my own UITypeEditor but the EditValue method never gets
My attempts to query MySQL from PHP with a create statement of a store
I've decided to take the advice in this question: create-excel-chart-programmatically-in-php and NOT attempt to
I've written a new DAL and BLL, but when I try to create an
I am attempted to write a small asynchronous socket library that I can use
I'm trying to use the following code to create a new SalesInvoice based on
So I come from a background in Java where you can create a class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.