Authorize Workflows

The article explains how to manage payment authorization and capture using PayPack, detailing steps for authorizing on sales orders and capturing on invoices, as well as authorizing and capturing on either sales orders or invoices. Payment status remains "requires_capture" until captured, and scheduled scripts automate the capture process based on saved search criteria.

Authorize on Sales Order & Capture on Invoice

All payments for Authorize Only will have the payment status as requires_capture until they are captured.

  • Make sure that the transaction type is set to Authorize Only on the PayPack configuration.

  • Click the Sales Order PayPack payment link and complete a payment.NetSuite PayPack Payment Link.png

  • Copy the Payment Intent ID from the PayPack Payment Intent Subtab.PayPack Payment Intent ID.png
  • Edit Sales Order → PayPack Data → PayPack Fields (subtab) → Check Capture Amount on Invoice.NetSuite - PayPack Capture Amount on Invoice.png
  • While creating the Invoice, update field Payment Intent ID from the Sales Order (PayPack).Invoice - PayPack Payment Intent ID.png

To automate this process from Sales Order to Invoice, use the attached NetSuite User Event script to pass the Payment Intent ID and Capture Amount on Invoice field values. 

UE Script to Update Fields

PayPack - Update SO Pa yPack Field UE.js

The user event script will be deployed and applies to PayPack Payment Intent record.

Script Deployment - PayPack Update SO PayPack Field UE.png

Note: If surcharges are enabled, a new surcharge item is created once the invoice is saved using a user event script.

If the Sales Order matches criteria for saved search Authorize on Invoice Saved Search, the next scheduled script (PayPack Invoice Amount Capture MR) run will capture the amount on the invoice.


Authorize & Capture on Sales Order

All payments for Authorize Only will have the payment status as requires_capture until they are captured.

  • Make sure that the transaction type is set to Authorize Only on the PayPack configuration.

  • Click the Sales Order PayPack payment link and complete a payment.PayPack Payment Link.png

If the Sales Order matches criteria for saved search Authorize on Sales Order Saved Search, the next scheduled script (PayPack Sales Order Amount Capture MR) run will capture the amount on the sales order.


Authorize & Capture on Invoice

All payments for Authorize Only will have the payment status as requires_capture until they are captured.

  • Make sure that the transaction type is set to Authorize Only on the PayPack configuration.

  • Click the Invoice PayPack payment link and complete a payment.PayPack Invoice Payment Link.png

If the Sales Order matches criteria for saved search Authorize on Invoice Saved Search, the next scheduled script (PayPack Invoice Amount Capture MR) run will capture the amount on the invoice.

Was this article helpful?
0 out of 0 found this helpful

More resources