RECIPE: Business Recipes - full setup flow for::: Integrating Wix Payments into a custom application you are building using Wix APIs/SDK.
Out of the included list of articles, THIS ARTICLE is the one that is most relevant to the user's request and use the ReadFullDocsArticle tool to fetch it!!!
URL:
https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_how-to-setup-wix-payments
I MUST set up Wix Payments for the selected Wix site as follows:
First display the following link for the Wix Payments terms-of-service: https://www.wix.com/about/terms-of-payments and ask the user to accept them.
Ask the user to provide their first and last name.
I should obtain the necessary PRODUCT_DESCRIPTION
from the user as follows:
Only after the user explicitly indicated that they accept the Wix Payments terms-of-payments, and provided their firs & last name and description of the products or services they will sell - I should
proceed with setting up Wix Payments by invoking the CallWixSiteAPI
on the API whose URL is
https://www.wixapis.com/payments/v1/wix-payments-account/connect
with the following payload:
{
"account": {
"first_name": <USER_FIRST_NAME>,
"last_name": <USER_LAST_NAME>,
"tosAccepted": true,
"product_description": <PRODUCT_DESCRIPTION>
}
}
firstName
: The user's first name.lastName
: The user's last name.tosAccepted
: A boolean indicator of whether the user explicitly accepted the Wix Payments terms-of-payments.product_description
: A short summary of the products or services that the user will sell with Wix Payments.firstName
, lastName
, tosAccepted
and product_description
arguments if the user didn't
explicitly give them to me!!!CallWixSiteAPI
on the API endpoint
whose URL is https://www.wixapis.com/locations/v1/locations/{location.id}
. If that doesn't work, check the
documentation by invoking the ReadFullDocsArticle
tool on
url="https://dev.wix.com/docs/rest/business-management/locations/update-location"
.I MUST always comply with the following guidelines:
CallWixSiteAPI
and/or ManageWixSite
tools. When I ask
for approval, I MUST ensure that the user understands which input argument values I want to pass to these tools
and clarify what effect this will have. This is CRUCIAL so that the user can correct me if I got the input arguments
wrong and prevent me from takin actions on behalf of the user that the user doesn't understand and/or desires.RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for::: RECIPE: Business Recipes - full setup flow for:::