Hi, anyone has tried to create a payment event for...
# suitescript
g
Hi, anyone has tried to create a payment event for sales order using suitescript? Tried transform, but no paymentevent type
b
you cant create the payment event
but you can set ccapproved and let netsuite create the payment event
g
@battk I do, but no luck
Copy code
{
  "pnrefnum": "325955776",
  "ccapproved": true,
  "custbody_dkd_special_instructions": "payment status: paid\n",
  "memo": "#LSF1121",
  "custbody_shopify_order_number": "#LSF1121",
  "custbody_farapp_storefront": "Shopify-lifespan-fitness",
  "custbody_farapp_storefront_order": 1121,
  "paymentmethod": "4",
  "shippingcost": 0,
  "shippingtaxcode": "7",
  "shipmethod": "10559",
  "location": "10",
  "item_tab": [
    {
      "item": "4882",
      "quantity": 1,
      "price": "5",
      "taxcode": "7"
    }
  ]
}
an example
b
that looks like the data needed to set on the sales order
im not sure what you are doing to transform that into the netsuite api
whatever you are using, make sure that you set the payment method that is marked in NetSuite as a payment card and that you are setting the pnrefnum and ccapproved fields