Order
The sample postcard costs RUB 100. The server stores a separate order and sets the amount and currency.
BEILOFF Toolkit / v1.0.1
Follow an order from checkout to confirmation. Try success and cancellation locally, then connect your own test store to use the hosted YooKassa payment page.
The sample postcard costs RUB 100. The server stores a separate order and sets the amount and currency.
Simulate either outcome locally. In test-store mode, the server creates a payment and returns a link to the provider’s hosted checkout.
The server retrieves the payment by ID and matches it to the order. Confirmation requires the expected amount, currency and final payment status. A pending order can be refreshed.
SQLite retains the order and operation key across restarts. Retries reuse this key within the allowed window. Older uncertain orders need dashboard reconciliation.
README.mdcheckout.mjspayment.test.mjsprovider.mjsserver.mjsRELEASE.txtAn independent BEILOFF example for test transactions. The order page refreshes its status when opened. A commercial store needs its own notifications, fulfilment and applicable receipt handling.
Change the background, text and button in the style constant in server.mjs, then replace BEILOFF Toolkit in the header with the shop name. Restart the demo and test success and cancellation. These styles apply to the sample store. YooKassa controls its hosted payment page.
Run node --test payment.test.mjs for request parameters, return handling, restarts and error cases using a simulated API. Verify the hosted payment separately in your own test store.
Added colour and logo customisation instructions to the README.
First release with a local checkout, test-store adapter and server-side status checks.