The station Commandant needs a gateway summary with the largest amounts first, so the biggest payments stand out immediately. In response, the amount field stores the payment amount in cents as a number.
What to return:
- payment_id — the gateway response ID
- order_id — the order ID
- status — the status from response
- amount_usd — the amount in dollars: amount / 100, rounded to 2 decimal places
Keep in mind:
- return every payment
- compare the amount as a number when sorting
Sort by amount_usd descending, then by payment_id ascending when amounts are equal.
payment_idorder_idstatusamount_usdShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in