Usually, when Wix calls Create Transaction the whole payment flow is implemented, including capturing the payment. Learn more about processing payments.
However, if authorizeOnly
is set to true
in the request, Wix will send a request to your Capture Transaction or Void Transaction endpoint when the transaction is captured or voided.
Wix only sends authorizeOnly:true
to PSPs that have enabled Full Auth Capture for card payments. This can be done while becoming a PSP or once you're already integrated with Wix.
The Wix app implementing the payment flow defines whether to handle capture when creating the transaction, or to handle creation and capture separately. If they are handled separately, the Wix app also defines when to call Capture Transaction or Void Transaction. This can be through a standardized workflow, Wix user interaction with a customized dashboard page, or another way that the Wix app defines.
To learn more about capture and void workflows, see Sample Capture and Void Flows.
In general, an implementation of these endpoints must do 2 things:
Here are some important things to keep in mind when implementing the endpoints:
authorizeOnly
is set to true
in the Capture Transaction request.Digest
header whose value is a JSON Web Token. The PSP should use this value to validate all requests to the endpoint. Learn more about JWT validation.In addition to responding to requests to the Capture Transaction and Void Transaction endpoints, the PSP must send webhooks to Wix to confirm capture or void events and to notify Wix about any changes to a payment status. Webhooks are sent using the Submit Event API.
Webhook requests must use 0Auth 2.0 authentication. To learn more, see Webhooks.