Skip to main content

Overview

You need to check payment status because bank processing is asynchronous. Use two simple methods:
  1. Cron job: Check pending orders every 20 minutes
  2. Manual check: When customer views their order

Method 1: Cron Job (Every 20 Minutes)

Setup Cron Job

Add to your crontab (Linux/Unix):

Method 2: Manual Check (When Customer Views Order)

Already implemented in Step 2! When customer lands on order page, it automatically checks once. Optional: Add a button to check on demand (checks every 1 minute max):

Summary

Two simple methods:
  1. ✅ Cron job every 20 minutes for all pending orders
  2. ✅ Manual check when customer views order (max every 1 minute)
  3. ✅ Auto-check once when order page loads
This covers all scenarios without overloading the API!

Next Steps

Continue to Best Practices

Learn essential security and error handling