Payment result

Back from the payment system: the result of the payment, once, on the page the payment was made for.

Svelte inputs and callbacks are component props. Content areas receive the data listed in their signatures.

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?: TPaymentReturnResultsuccess or failed: shows this result instead of the one the return page left. Without it the component reads the result once from the tab's sessionStorage.undefined
modal?: booleanfalse keeps the window in the page instead of over it; the guide uses it. Default: true.false

Source files

The component source files are shown below. The archive includes local dependencies and styles.

src/lib/components/basklee/payments/PaymentReturnNotice.svelte
PreviousComponents