Skip to Content
SubscriptionsMethod reference XMLWidget page — the iframe content

Widget page — the iframe content

GET /Cards/Sbp/widget.html

What mount() inserts into the iframe. Branding arrives as query parameters and is sanitized on the server: the page is public, and without validation this is reflected XSS. An invalid value is silently replaced with the default — this is the payer’s screen.

The legal notices (subscription terms and data processing consent) exist in this flow only; in the sandbox they lead to the /Cards/Sbp/legal/{doc} stubs.

Before the payment the page shows the amount incl. VAT and the subscription period. The method set is the project setting adjusted to the subscription terms: T-Pay is temporarily off, a deferred first payment offers SBP only. methods only narrows the set, webview=1|0 is the shop app flag. Once the operation has started the method cannot be changed (canChangeMethod=false in the page config, the switch link is hidden); after a reload the choice screen may appear again, and only the same method continues the operation.

Request parameters

FieldTypeRequiredDescription
tokenstringyesThe value from the CreateSubscription AuthorizeUrl
namestring (≤64)—Shop name shown on the screen (trimmed to 64 characters); defaults to “Payment”
logostring—Logo — only http(s):// or data:image/ is accepted
primarystring—Accent color — #rgb, #rrggbb, rgb()/rgba() or a whitelisted name
bgstring—Background color (the previous name background is still accepted)
textColorstring—Text color; by default picked from the background
poll1 · 0—Status polling; 0 turns it off (false is accepted too)
langru · en—Screen language — a sandbox extension, its pages are bilingual; the subscription SDK does not pass it

Response codes

CodeDescription
200The widget page
401The token did not match — an “invalid link” screen