There are 2 scheduled scripts to configure.
- Sales Order Capture
- Invoice Capture
Create script deployments (single and multiple Stripe Accounts)
After successfully adding all the saved searches to the Configuration - PayPack screen, navigate to create and schedule the MapReduce script. To do this, follow these steps:
Click Customization → Scripting → Scripts.
Filter the scripts to display only MapReduce scripts. You can achieve this by clicking Filters → Type and selecting Map/Reduce.
In the search bar, enter PayPack Invoice Amount Capture MR and click the View button.
In the search bar, enter PayPack Sales Order Amount Capture MR and click the View button.
- Once you've accessed the script details page, you can deploy the script by clicking the Deploy Script button.
- Clicking "Deploy Script" will take you to the Script Deployment page. This page allows you to schedule the script execution based on your requirements. Here, you'll find a parameter Stripe Account Id. This parameter requires the Internal ID of the relevant "PayPack Stripe Accounts Configuration" custom record in NetSuite. By specifying the correct ID, you can ensure the script deployment runs for the intended Stripe account.
Sales Order Capture
Navigate to Customization → Scripting → Script Deployments.
Select PayPack Sales Order Amount Capture MR Deployment Script Deployment.
Settings/Configuration for the first run:
Click on edit on this script deployment PayPack Sales Order Amount Capture MR Deployment.
Navigate to the subtab parameters.
Enter the Stripe Account ID.
Hover on the save button and click on “Save & Execute”
Setting/Configuration for the next runs:
Click on edit on this script deployment PayPack Sales Order Amount Capture MR Deployment.
Navigate to the subtab “Schedule” and select the type of event.
Enter the Start Date for the event.
Select how often the event should be scheduled.
Enter the End Date or Check No End Date checkbox.
Click on Save.
Invoice Capture
Navigate to Customization → Scripting → Script Deployments.
Select PayPack Invoice Amount Capture MR Deployment Script Deployment.
Settings/Configuration for the first run:
Click on edit on this script deployment PayPack Invoice Amount Capture MR Deployment.
Navigate to the subtab parameters.
Enter the Stripe Account ID.
Hover on the save button and click on “Save & Execute”
Setting/Configuration for the next runs:
Click on edit on this script deployment PayPack Invoice Amount Capture MR Deployment.
Navigate to the subtab “Schedule” and select the type of event.
Enter the Start Date for the event.
Select how often the event should be scheduled.
Enter the End Date or Check No End Date checkbox.
Click on Save.