PayPack logo
PayPack logo

All articles

Retry Invoice ChargeUpdated 12 hours ago

PayPack allows users to easily reprocess all failed invoice charges in Stripe. This feature, configured within PayPack in NetSuite, enables automatic re-initiation of charges in Stripe through a scheduled Map/Reduce script.

If a surcharge is configured in your PayPack settings for the specific Stripe account, the system will automatically generate a surcharge invoice and apply it to the relevant invoice record. The Stripe charge ID will also be populated on the invoice record. This automation significantly reduces the manual effort previously required to create charges from invoice records.

To use this feature, select the saved search on the PayPack configuration page under the Schedule tab.

Configure_Saved_Search.png


  • Create a saved search: The PayPack bundle will include a saved search template which you can make a copy and use.
  • Saved Search Templates
    • Single Currency: PayPack Retry Invoice Charge Search
    • Multi Currency: PayPack Retry Invoice Charge Search Multi Currency

Note: Do not modify the label names in the columns tab as it is used to process recurring invoices.

Columns

Saved_Search_Result_Columns.png

For multi currency, the payAmount custom label will use field Amount Remaining (Foreign Currency).

Criteria

Saved_Search_Criteria.png


Deploy Scheduled Script

Next, you will need to schedule a script to process invoices from the configured saved search.

  1. Go to Customization → Scripting → Script Deployments.
  2. Click on filters on the Deployments page.
  3. Select Map/Reduce in the Type drop-down and find customdeploy_pp_retry_invoice_chg_deploy.
  4. Click on Edit to set the schedule.
  5. On the Edit page, go to the Schedule tab and select the event that works for you.
  6. Select the Scheduled status from the Status drop-down.
  7. And finally, click on the Save button to save the info and the script will run based on the event that is selected.
Schedule_Script_Deployment_for_Recurring_Billing.png


For multiple PayPack configurations, insert the corresponding Stripe Account Id under the Parameters tab for each script deployment.


Was this article helpful?
Yes
No