Skip to content

Order statuses and payment flow

  1. The customer confirms the order. The order is created before the payment, with the status BESTERON - awaiting payment.
  2. The module creates a payment with the order amount and items and redirects the customer to the Besteron gateway.
  3. The customer pays.
  4. The module verifies the result directly with Besteron:
    • when the customer returns from the gateway,
    • after a notification from Besteron,
    • by cron, if no notification arrived.
  5. A paid order moves to the chosen status and the transaction ID is stored with the order’s payment.

An order is marked as paid only if the amount and currency in Besteron match the payment created. A customer’s return or a call to the notification address alone is not enough.

Status When
BESTERON - awaiting payment The order was created and is waiting for payment.
BESTERON - payment interrupted The payment was cancelled, expired or ended with an error.
BESTERON - refund A refund of the whole amount was sent.
Besteron status In the panel What happens to the order
Completed Paid Moves to the status after payment.
Created, WaitingForConfirmation, WaitingForCompletion Waiting for payment Unchanged.
Canceled, Timeouted, Error, Invalid, Closed Not paid Interrupted status, or cancelled, as set.
ManualAttentionRequired Needs a check in Besteron Unchanged. A warning is written to the logs.

A bank transfer counts as paid when Besteron confirms it with the status Completed.

When the module does not change the status

Section titled “When the module does not change the status”
  • An unsuccessful payment does not change a paid order.
  • For an unsuccessful payment only the latest payment of a still-waiting order decides. A status you set manually stays.
  • Repeated notifications change nothing.

If Besteron confirms a payment late (for example for an order cancelled in the meantime), the order moves to the status after payment. Check such an order.

  • Checks pending payments older than 5 minutes and younger than 8 days, at most 50 per run.
  • Updates the status of unfinished refunds.
  • If cancellation after days is enabled, cancels old unpaid orders. An order whose payment is still running or needs a check is not cancelled.

The payment is not offered at checkout. Notifications are not processed; after you upload the license, cron checks the pending payments (within the limits above).

Was this article helpful?