Webmoney
 
Specifics
 
Integration scenarios
Ready-made solutions: Smart payment
 
Payment with confirmation on the Webmoney page
Step 1. Create a payment  with the 
webmoney
type in the 
payment_method_data
object, and the 
redirect
type as well as the URL of a page on your side for redirecting the user after the payment (in the 
return_url
parameter) in the 
confirmation
object.
Example of request
cURL
PHP
Python
curl https://payment.yandex.net/api/v3/payments \
  -X POST \
  -u <Shop ID>:<Secret Key> \
  -H 'Idempotence-Key: <Idempotence Key>' \
  -H 'Content-Type: application/json' \
  -d '{
        "amount": {
          "value": "2.00",
          "currency": "RUB"
        },
        "payment_method_data": {
          "type": "webmoney"
        },
        "confirmation": {
          "type": "redirect",
          "return_url": "https://www.merchant-website.com/return_url"
        },
        "description": "Order No. 72"
      }'
Step 2. Redirect the user to the payment confirmation page (you will receive the URL in the 
confirmation_url
parameter).
Example of a created payment object
JSON
{
  "id": "22c5d32a-000f-5000-a000-176b8fb6c8a9",
  "status": "pending",
  "paid": false,
  "amount": {
    "value": "2.00",
    "currency": "RUB"
  },
  "confirmation": {
    "type": "redirect",
    "confirmation_url": "https://merchant.webmoney.ru/lmi/payment.asp?gid=007A174F-3EE6-48B6-80D9-4E2406780E23"
  },
  "created_at": "2018-06-27T16:46:34.782Z",
  "description": "Order No. 72",
  "metadata": {},
  "payment_method": {
    "type": "webmoney",
    "id": "22c5d32a-000f-5000-a000-176b8fb6c8a9",
    "saved": false
  },
  "recipient": {
    "account_id": "100001",
    "gateway_id": "1000001"
  },
  "refundable": false,
  "test": false
}
Step 3. Wait for the payment to be successfully completed: you will receive a notification from YooMoney, or you can send periodic requests for payment information .
 
See also
Payment processDeclined paymentsPayment by 54-FZ