Order statuses and payment flow
The payment flow step by step
Section titled “The payment flow step by step”- The customer confirms the order. The order is created before the payment, with the status BESTERON - awaiting payment.
- The module creates a payment with the order amount and items and redirects the customer to the Besteron gateway.
- The customer pays.
- 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.
- 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.
The module’s order statuses
Section titled “The module’s order statuses”| 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. |
Payment statuses from Besteron
Section titled “Payment statuses from Besteron”| 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.
What cron does
Section titled “What cron does”- 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.
Without a license
Section titled “Without a license”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?
Thank you for your answer.
We are sorry. Tell us what is missing or unclear:Write to support