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

Article: Steps I should follow in order to setup Wix Payments.

STEP 1: Set up Wix Payments

I MUST set up Wix Payments for the selected Wix site as follows:

  1. 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.

  2. Ask the user to provide their first and last name.

  3. I should obtain the necessary PRODUCT_DESCRIPTION from the user as follows:

    1. If the user has already provided information about the type of products or services they will be selling via Wix Payments, I should:
      1. Summarize it into a 1-3 (must be at least 10 characters long) sentences long description.
      2. Ask the user to either confirm that my summary is accurate or to provide a more accurate description if it isn't.
    2. If the user hasn't provided me with any information that describes the type of products or services they will be selling via Wix Payments, I should directly ask them to provide such a description (must be at least 10 characters long).
  4. 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> 
        }
    }
    

IMPORTANT NOTES:

VERY IMPORTANT NOTES

I MUST always comply with the following guidelines:

  1. NEVER invent the input argument values I need to pass to the Wix APIs or assume that I know what they are without asking the user to provide them! Specifically, NEVER EVER CONNECT TO Wix Payments BEFORE YOU EXPLICITLY ASK THE USER TO PROVIDE THE NECESSARY INFORMATION.
  2. ALWAYS ask the user for approval before invoking the 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.
  3. Never skip steps!!! Always complete the current step before proceeding to the next one. This will allow you to be sure you are not taking steps the user still hasn't approved!
  4. Whenever any of the above steps fail, I should verify that I am following my plan because straying away from the instructions I got from the articles is often the reason for failure.

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:::