How the Jumpseller External Payment Gateway works
How the Jumpseller External Payment Gateway works: the x_* POST request, the HMAC-SHA256 x_signature, callbacks, redirects and how Qvard connects.
An External Payment Gateway lets a Jumpseller store send the checkout to a payment provider outside Jumpseller. This article explains the request and the answer that the gateway handles, and then shows how Qvard is connected through the same protocol.
What an External Payment Gateway is
In Jumpseller, an External Payment Gateway is a payment method that a store connects to a provider outside Jumpseller. The store admin adds it and enters the provider address and the credentials. After that the method appears at checkout, and a shopper who picks it is sent to the provider to complete the payment. The provider then reports the result back to the store. Qvard is connected this way, using the Jumpseller protocol, so the store admin only needs the values that the Qvard cabinet provides. Understanding this flow helps when something goes wrong, because you can tell whether the problem sits in the request, the signature, the callback or the redirect.
The request from Jumpseller
When the shopper picks the gateway, Jumpseller sends a POST request with x_* parameters. They carry the order reference and the URLs that the flow needs to come back to the store. The gateway reads them on the server side, so the request body never has to be handled in the browser. Each parameter has a fixed role in the flow, and the reference is the value that ties the payment result to the right order in your store. A request that arrives without its parameters cannot be matched to an order, which is why the reference must be stored with the order when it is created.
The signature check
Each request carries x_signature. It is an HMAC-SHA256 over the sorted x_* key-value pairs, with the secret as the key. Qvard verifies the signature before it acts on the request, so a request with a wrong or missing signature is not processed. The secret is kept on the server and never goes to the browser, which is why the Key and the Secret must be stored in a safe place and never pasted into public code. If the secret is ever exposed, reissue it in the cabinet and update the value in the Jumpseller admin at the same time.
Callback and redirects
After the payment, the result goes to the x_url_callback address as a server-side POST, so the store learns the outcome without relying on the shopper browser. The shopper is redirected to x_url_complete when the payment succeeds and to x_url_cancel when it is cancelled. The x_result field takes one of three values: completed, pending or failed. A redirect only moves the shopper, so the order should be closed on the callback result, not on the redirect alone. A shopper who closes the browser before the redirect still gets the result through the callback.
Retries and idempotency
The callback is repeated until the receiver returns HTTP 200. Processing is idempotent per x_reference, so a repeated notification for the same order does not create a second result for it. Your store should treat x_reference as the key of the order and answer HTTP 200 once the order is handled. If the answer is slow or missing, the callback will arrive again, and the same reference keeps the handling safe to repeat. Store the reference and the result you have already handled, so that a repeated callback can be recognised and answered without changing the order twice.
Connecting Qvard as the gateway
Create the connection in the Qvard cabinet, copy the Key and the Secret, then add an External Payment Gateway in the Jumpseller admin and enter the Payment method URL https://api.qvard.com/plugins/jumpseller with the Key and the Secret. Test the flow with a small real order, because there is no test mode. The full technical overview is on the product page Qvard for Jumpseller, and it is the right place to check the values before you save them. Check the same values again after saving, because a single wrong character in the Key or the Secret blocks the whole flow.
FAQ
Which x_* parameters does the gateway use?
The request carries x_* parameters. The ones this article names are x_signature, x_reference, x_result, x_url_callback, x_url_complete and x_url_cancel.
Is the secret sent to the shopper browser?
No. The secret never goes to the browser, and the signature is checked on the server.
What happens if my store does not answer the callback?
The callback is repeated until HTTP 200 is returned. Make sure the store answers 200 once it has handled the order.