How to schedule the batch job
NOTE: Developer skill is required for this setup as we do not have the UI for scheduled processes yet.
Open the Developer Console > Debug > Open Execute Anonymous Window > paste the code below, and execute
GatewaySettlementReconciliationBatch settlement = new GatewaySettlementReconciliationBatch(); String cronExp = '0 30 3 * * ?'; System.schedule('[PosiPay] Gateway Settlement Reconciliation', cronExp, settlement);
For Testing only
Create a Screen Flow
Go to Setup > Flow > Screen Flow > Add Element > Screen > Components > PosiPay Settings > Save > Debug > Run > check the job under the Apex Jobs
API Name: PosiPay_Settings_Gateway_Settlement
Flow Label: Gateway Settlement Schedule
Flow API Name: autopopulated
Next place to go: Step 7 - Set up Stripe Payment Flow