externalId), a return URL after payment (returnUrl) and optional customer data.
After creating a payment, the SDK returns a redirectUrl to the checkout page where the customer can complete the payment.
1. Installation
2. Example call
Configuration parameters
createPayment parameters
All parameters are passed flat, on a single level - the SDK assembles the
details object sent to the API from them. Any extra fields are passed through along with the rest.
Starting a payment method automatically
WithtriggerPayment you preselect a payment method in the checkout, so the customer does not have to find it in the list.
Any other value throws a
PaymoveValidationError (field triggerPayment). Omitting the field or passing null means the standard checkout with method selection.
Even for the wallets, auto-start only works when the checkout knows the customer email - pass it in
email. It also does not run inside the embedded widget modal, or when the method is not available for your product.QR code step
WithqrStepEnabled the checkout opens on an extra screen on desktop: instead of the payment form the customer sees a QR code, scans it with their phone and finishes the payment there. Useful for BLIK and for wallets that only exist on mobile.
The step is opt-in - omit the field or pass false and the checkout goes straight to the payment form.
The QR code appears on desktop only. On mobile, and whenever
triggerPayment is set, the checkout skips the step regardless of this field.qrStepEnabled reached the SDK types after 0.2.0 was published. On the older version the field still works (the SDK forwards unknown keys), but TypeScript will not suggest it - update the package to the latest version.Automatic return to the store
After a successful payment the checkout shows a confirmation screen with a “Back to store” button. Theautoclose field (in milliseconds) makes that return happen on its own: the remaining seconds are shown inside the button (Back to store (10s)) and the customer lands on returnUrl once the countdown ends. Inside the widget the modal closes instead and onComplete fires.
Any interaction from the customer - a click, a tap, a key press - cancels the countdown for good, so nobody is pulled away mid-action, for example while downloading the confirmation PDF. Omit the field and the confirmation stays on screen until the customer leaves it themselves.
autoclose reached the SDK types in release 0.3.0. On older versions the field still works (the SDK forwards unknown keys), but TypeScript will not suggest it.Response
3. Redirect the customer
returnUrl. The entire payment process is fully managed by Paymove - checkout and processing - while you fulfil the order after a verified webhook, not after the customer returns.
Instead of redirecting, you can open the same URL in a modal on your own page — see the Browser widget, which also ships a ready-made button and a payment-methods bar.