Merchant may offer the user to pay the invoice immediately by redirecting to the QIWI Wallet Checkout page via the HTTP GET-request.
GET /form?shop=2042&transaction=1234567&successUrl=http%3A%2F%example.com%2Fsuccess%3Fa%3D1%26b%3D2&failUrl=http%3A%2F%example.com%2Ffail%3Fa%3D1%26b%3D2&pay_source=qw HTTP/1.1
Host: oplata.qiwi.com
If the merchant uses invoicing web form, this redirect is performed by default.
Parameter | Type | Description | Required |
---|---|---|---|
shop | string | Merchant's ID in QIWI Wallet system, corresponds to prv_id parameter used to create the bill. | Y |
transaction | string | Invoice ID generated by the merchant, corresponds to bill_id parameter used to create the bill. | Y |
embedded | boolean | The checkout page appears more compact and can be embedded conveniently within the merchant’s site. Default value is false |
N |
successUrl | URL-encoded string | The URL to which the payer will be redirected in case of successful creation of QIWI Wallet transaction. URL must be within merchant's site. Redirection is performed when user pays by QIWI Wallet account's balance only | N |
failUrl | URL-encoded string | The URL to which the payer will be redirected when creation of QIWI Wallet transaction is unsuccessful. URL must be within merchant's site. Redirection is performed when user pays by QIWI Wallet account's balance only | N |
pay_source | string | Default payment method to show first on the page for the user. Allowed values:qw – QIWI Wallet account;mobile – client’s cell phone account;card – a credit/debit card;wm – linked WebMoney wallet;ssk – payment by cash in a QIWI Terminal.When specified method is inaccessible for the user, the page shows a notice about it and the client can choose another method. |
N |
Redirect when transaction is successfully created
GET /success?a=1&b=2&order=1234567 HTTP/1.1
Host: example.com
Redirect when creation of transaction is unsuccessful
GET /fail?a=1&b=2&order=1234567 HTTP/1.1
Host: example.com
The URL for redirection supplements order parameter with its value as the original merchant's invoice ID. Using this parameter, the merchant can render the final page depending on the order details.