Payment result
Back from the payment system: the result of the payment, once, on the page the payment was made for.React inputs and callbacks are component props. Loading callbacks receive a request and return data according to their signatures; the application updates state accepted through separate props.
Data sources
| Property | Purpose |
|---|---|
page_data.init.locale | Application Load response. |
Short description
The payment system's Success URL /accounts/orders/latest/success and Fail URL /accounts/orders/latest/failed (no query; /accounts/orders/latest alone works too) open the storefront's return page, which answers GET and POST. Inside the payment frame it moves the whole window out of the frame, back to the page the payment was opened for: the order for an order payment, the wallet for a top-up; the wallet when no page is remembered. That page shows this window once: «Payment received» or «Payment not completed». A result older than 10 minutes is dropped. The payment's own status always comes from the order or the wallet.
Live preview
The window after a successful payment, shown in the page instead of over it.
Inputs
| Property | Purpose | Value |
|---|---|---|
result?: TPaymentReturnResult | Shows this result instead of the one the return page left (previews, tests). | undefined |
modal?: boolean | false keeps the window in the page instead of over it. Default: true. | false |
Source files
The component source files are shown below. The archive includes local dependencies and styles.