Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

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

If the above code doesn't work follow these steps :

Create a Screen Flow

  • Go to Setup > Flow > Click New Flow

image-20240321-040300.png
  • Select Screen Flow and click Create.

image-20240321-050847.png
  • Add Element and select Screen.

image-20240321-051039.png
  • In the Components, click PosiPay Settings and fill in the Label and the API Name (auto-populated), then click Done.

image-20240321-052257.png
  • After completing the flow, click Save and fill in the Flow Label and the Flow API Name will auto populate.

Flow Label: Gateway Settlement Schedule

Flow API Name: auto-populated once the Flow Label is input.

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

  • No labels