initiatePayment( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Initiates payment for a payment link by creating a Wix eCommerce checkout. Intended for use by Wix users to create a Wix eCommerce checkout directly without opening a payment link. Initiating a payment will fail if successful payment will take the payment link over it's payment limit.

Permissions
Manage Paylinks
Manage Stores
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
paymentLinkIdstringRequired

ID of the payment link to initiate payment for.

Returns
Return Type:Promise<InitiatePaymentResponse>
Errors
400Invalid Argument

There is 1 error with this status code.

428Failed Precondition

There are 8 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?