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

PropertyPurpose
page_data.init.localeApplication 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

PropertyPurposeValue
result?: TPaymentReturnResultShows this result instead of the one the return page left (previews, tests).undefined
modal?: booleanfalse 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.

components/basklee/payments/PaymentReturnNotice.tsx
PreviousComponents