Variable: paymentLinks
The paymentLinks namespace contains all the functions related to paymentLinks operations such as starting the payment link creation flow. It can be accessed like this:constpaymentLinks:object=paymentLinksNamespace.paymentLinks
Type declaration
getPaymentLinkCreationFlowUrl()
getPaymentLinkCreationFlowUrl: (Generates the URL for initiating a payment link creation flow with specified items.params) =>Promise<string>
Parameters
params
PaymentLinkParams<CreatePaymentLinkSettings>
An object containing:
- paymentLinkSettings: An object containing:
- items: An array of items to be included in the payment link. Each item must conform to the Item type and will be validated.
- callbackUrl: Required callback URL to redirect to after payment link creation.
- operationSettings: An object with operation-level settings such as
proxyRequestFunction,accessToken,stagingToken, etc.
Returns
Promise<string>
Promise resolving to the full URL as a string, which can be used to launch the payment link creation flow in an iframe or browser.
Example
Throws
InvalidParametersError If the provided items array is invalid or if callbackUrl is missing or invalid.
Throws
AuthenticationError If authentication fails (e.g., invalid or missing access token).