Create checkout session
create_checkout_sessionCreate a NovaPay checkout session to collect payment and Nova Poshta delivery details. Returns a session ID for generating a customer payment URL.
Instructions
Create a NovaPay Checkout session (payment + Nova Poshta delivery collection). Returns the session id. To get a payment URL for the customer, follow up with add_checkout_payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delivery | No | Delivery details object | |
| fail_url | No | ||
| metadata | No | ||
| success_url | No | ||
| callback_url | Yes | Merchant URL for postbacks (required for checkout) | |
| client_phone | No | Payer phone, e.g. +380501112233 | |
| create_express_waybill | No | Create a Nova Poshta express waybill |