Connect Yandex Delivery
Yandex Pay enables you to connect to Yandex Delivery using the Yandex Pay form, without technical integration.
Note
To add the merchant's delivery methods in the Yandex Pay form using the API, follow the instructions on connecting Yandex Delivery.
To show the Yandex Delivery options to the user in the Yandex Pay Checkout form:
- In the Yandex Pay console, enable Yandex Delivery integration.
- In the /order/render response, return the data:
- The
shipping.availableMethods
attribute must includeYANDEX_DELIVERY
. - Specify dimensions for each item in the cart.
- Add the details about the warehouse where the courier can pick up the order to
shipping.yandexDelivery.warehouse
.
- The
How Yandex Delivery works:
- When placing an order, the user selects the Yandex Delivery option.
- Yandex Pay authorizes user payment.
- The store assembles the order and initiates delivery by the /delivery/create request.
- Yandex Delivery evaluates the cost, and when the evaluation is complete, the delivery changes its status to
READY_FOR_APPROVAL
. - The store accepts the delivery by the /delivery/accept request within 10 minutes after the evaluation is complete.
- If more than ten minutes have elapsed, the delivery status changes to
EXPIRED
. - The store can renew the delivery via the /delivery/renew request and return to step 4.
- If more than ten minutes have elapsed, the delivery status changes to
- The delivery process is initiated:
- The delivery service receives the order from the merchant.
- The delivery service delivers the order to the recipient.
- If it fails to hand the order over to the recipient, it returns the order to the merchant.
- Yandex Pay notifies the merchant about the delivery status change by calling /webhook.
- The store can use the /delivery/cancel request to cancel the delivery for free or at a fee depending on the current delivery status. To find out the cancellation options (paid, free, unavailable), see the /delivery/cancel-info response.
When automated delivery confirmation is enabled, Yandex Pay will complete steps 3 and 5 immediately after the payment is authorized successfully.