{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["sub-heading","tabs","tab","admonition","br","details","required"]},"type":"markdown"},"seo":{"title":"Withdrawal flow","description":"Transform your commerce with PXP's unified platform—seamless payments, real-time insights, and global growth in one powerful integration.","lang":"en-UK","siteUrl":"https://developer.pxp.io"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"withdrawal-flow","__idx":0},"children":["Withdrawal flow"]},{"$$mdtype":"Tag","name":"SubHeading","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send payouts to returning customers using stored wallet details."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"overview","__idx":1},"children":["Overview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The withdrawal flow is designed for returning customers whose wallet details you already have stored. This provides a faster, streamlined experience — the customer simply reviews the payout details and confirms, without needing to log in again."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This flow uses the receiver and submission components together, displaying the stored wallet information and providing a \"Withdraw\" button."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"before-you-start","__idx":2},"children":["Before you start"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To use the withdrawal flow for payouts:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Install the Web SDK:"]}," Install the latest version from ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://www.npmjs.com/package/@pxpio/web-components-sdk","target":"_blank"},"children":["npm"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"shell","header":{"controls":{"copy":{}}},"source":"npm i @pxpio/web-components-sdk\n","lang":"shell"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Get your API credentials:"]}," Obtain your token ID, token value, and client ID from the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://portal.pxp.io","target":"_blank"},"children":["Unity Portal"]}," under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Merchant setup > Merchant groups > Inbound calls"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create a session on your backend:"]}," Call the Sessions API with HMAC authentication and set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transactionMethod.intent.paypal"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"Payout\""]},". Required body fields are ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["site"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchantTransactionId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amounts"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["transactionMethod"]},". ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sessionTimeout"]}," is optional (minutes). ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchant"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["site"]}," are limited to 20 characters."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example request body:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"merchant\": \"MERCHANT-1\",\n  \"site\": \"SITE-1\",\n  \"sessionTimeout\": 120,\n  \"merchantTransactionId\": \"0ce72cfd-014d-4256-a006-a56601b2ffc4\",\n  \"transactionMethod\": {\n    \"intent\": {\n      \"paypal\": \"Payout\"\n    }\n  },\n  \"amounts\": {\n    \"currencyCode\": \"USD\",\n    \"transactionValue\": 100\n  },\n  \"allowTransaction\": true\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Build the HMAC string as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{timestamp}{requestId}{requestPath}{requestBody}"]}," with no separators, where ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["requestPath"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["api/v1/sessions"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["requestBody"]}," is the exact JSON bytes you send (typically minified). Sign with HMAC-SHA256 using your token value, then send:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -i -X POST \\\n  'https://api-services.test.pxp.io/api/v1/sessions' \\\n  -H 'Authorization: PXP-UST1 {tokenId}:{timestamp}:{hmacSignature}' \\\n  -H 'X-Request-Id: {requestId}' \\\n  -H 'X-Client-Id: {clientId}' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"merchant\":\"MERCHANT-1\",\"site\":\"SITE-1\",\"sessionTimeout\":120,\"merchantTransactionId\":\"0ce72cfd-014d-4256-a006-a56601b2ffc4\",\"transactionMethod\":{\"intent\":{\"paypal\":\"Payout\"}},\"amounts\":{\"currencyCode\":\"USD\",\"transactionValue\":100},\"allowTransaction\":true}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A successful response includes ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sessionId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hmacKey"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["encryptionKey"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sessionExpiry"]},". Pass that session object into ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PxpCheckout.initialize({ session: sessionData, ... })"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ensure your PayPal merchant account is onboarded"]}," with PXP."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Have sufficient funds"]}," in your gateway balance to cover payout amounts and fees."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"payout-flow","__idx":3},"children":["Payout flow"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The withdrawal flow consists of five key steps for returning customer payouts."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-1-display-payout-details","__idx":4},"children":["Step 1: Display payout details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The customer sees their stored PayPal email or Venmo handle displayed alongside the payout amount. The receiver component shows the wallet destination, optionally masked for privacy."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-2-submission","__idx":5},"children":["Step 2: Submission"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The customer clicks the \"Withdraw with PayPal\" or \"Withdraw with Venmo\" button. The SDK calls ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onClick"]}," (if configured). Wallet details, amount, and currency are validated when you create the components — missing or invalid values throw at create time and are not delivered through ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onError"]},". Runtime failures during SDK-initiated payout execution are delivered to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onError"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-3-payout-approval-sdk-initiated","__idx":6},"children":["Step 3: Payout approval (SDK-initiated)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["proceedPayoutWithSdk"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},", the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPrePayoutSubmit"]}," callback runs so you can show a confirmation dialog or perform additional validation before the payout executes. Provide this callback when using SDK-initiated mode — without it, the SDK does not execute the payout."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Return ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{ isApproved: true }"]}," to proceed with the payout, or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{ isApproved: false }"]}," to cancel."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["proceedPayoutWithSdk"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]},", this step is skipped. The SDK calls ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onClick"]}," (if configured) and returns without running ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPrePayoutSubmit"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-4-payout-execution","__idx":7},"children":["Step 4: Payout execution"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For the SDK-initiated mode, the SDK automatically sends the payout request to the PXP Gateway. For merchant-initiated mode, your backend triggers the payout via API."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-5-payout-result-sdk-initiated","__idx":8},"children":["Step 5: Payout result (SDK-initiated)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When the SDK executes the payout, the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPostPayout"]}," callback receives the transaction result. You can display a success message and redirect the customer to a confirmation page. Merchant-initiated mode does not call ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPostPayout"]},"; handle success from your backend response instead."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"implementation","__idx":9},"children":["Implementation"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-1-configure-your-sdk","__idx":10},"children":["Step 1: Configure your SDK"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Set up your SDK configuration with wallet details to trigger the withdrawal flow."]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PayPal","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"import { PxpCheckout, IntentType, CurrencyType } from \"@pxpio/web-components-sdk\";\n\nconst pxpCheckoutSdk = PxpCheckout.initialize({\n  environment: \"test\", // or \"production\" for live\n  session: sessionData,\n  ownerId: \"your-owner-id\",\n  ownerType: \"MerchantGroup\",\n  transactionData: {\n    amount: 100,\n    currency: \"USD\" as CurrencyType,\n    entryType: \"Ecom\",\n    intent: {\n      paypal: IntentType.Payout\n    },\n    merchantTransactionId: crypto.randomUUID(),\n    merchantTransactionDate: () => new Date().toISOString()\n  },\n  paypalConfig: {\n    payoutConfig: {\n      proceedPayoutWithSdk: true,\n      paypalWallet: {\n        email: \"customer@example.com\",  // Stored PayPal email\n        payerId: \"PAYER_ID_XXX\"         // Required: stored payer ID\n      }\n    }\n  }\n});\n","lang":"typescript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Venmo","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"import { PxpCheckout, IntentType, CurrencyType } from \"@pxpio/web-components-sdk\";\n\nconst pxpCheckoutSdk = PxpCheckout.initialize({\n  environment: \"test\", // or \"production\" for live\n  session: sessionData,\n  ownerId: \"your-owner-id\",\n  ownerType: \"MerchantGroup\",\n  transactionData: {\n    amount: 100,\n    currency: \"USD\" as CurrencyType,  // Venmo only supports USD\n    entryType: \"Ecom\",\n    intent: {\n      paypal: IntentType.Payout\n    },\n    merchantTransactionId: crypto.randomUUID(),\n    merchantTransactionDate: () => new Date().toISOString()\n  },\n  paypalConfig: {\n    payoutConfig: {\n      proceedPayoutWithSdk: true,\n      venmoWallet: {\n        receiver: \"@venmo-user\",      // or email or phone number\n        recipientType: \"UserHandle\"   // \"Email\", \"Phone\", or \"UserHandle\"\n      }\n    }\n  }\n});\n","lang":"typescript"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Providing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paypalWallet"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["venmoWallet"]}," properties signals to the SDK that this is a returning customer with stored wallet details."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-2-add-the-html-containers","__idx":11},"children":["Step 2: Add the HTML containers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add HTML containers for each component."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<div class=\"payout-page\">\n  <h1>Withdraw funds</h1>\n  <div id=\"payout-amount-container\"></div>\n  <div id=\"payout-receiver-container\"></div>\n  <div id=\"payout-submit-container\"></div>\n</div>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-3-create-and-mount-the-components","__idx":12},"children":["Step 3: Create and mount the components"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use the amount, receiver, and submission components to build the withdrawal experience."]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PayPal","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"// Create the amount display component\nconst amountComponent = pxpCheckoutSdk.create('payout-amount', {\n  label: \"Withdrawal Amount\"\n});\n\n// Create the PayPal receiver display component\nconst receiverComponent = pxpCheckoutSdk.create('paypal-payout-receiver', {\n  label: \"PayPal Account\",\n  showMaskToggle: true  // Eye icon; starts masked. applyMask only applies when showMaskToggle is false\n});\n\n// Create the submission button for PayPal\nconst submitComponent = pxpCheckoutSdk.create('payout-submission', {\n  recipientWallet: \"Paypal\",\n  \n  // Required for SDK-initiated payouts (proceedPayoutWithSdk: true)\n  onPrePayoutSubmit: async () => {\n    const confirmed = await showConfirmationDialog();\n    return { \n      isApproved: confirmed,\n      note: recipientWallet === \"Venmo\" ? \"Customer withdrawal\" : undefined\n    };\n  },\n  \n  // Called when the payout completes successfully (SDK-initiated)\n  onPostPayout: (result) => {\n    console.log('Payout successful:', result.transactionId);\n    showSuccessMessage('Your withdrawal has been processed!');\n    window.location.href = `/success?txn=${result.transactionId}`;\n  },\n  \n  // OPTIONAL: Called on any error\n  onError: (error) => {\n    console.error('Payout failed:', error);\n    showErrorMessage('Withdrawal failed. Please try again.');\n  }\n});\n\n// Mount all components\namountComponent.mount('payout-amount-container');\nreceiverComponent.mount('payout-receiver-container');\nsubmitComponent.mount('payout-submit-container');\n","lang":"typescript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Venmo","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"// SDK configuration with Venmo wallet\nconst pxpCheckoutSdk = PxpCheckout.initialize({\n  // ... other config\n  paypalConfig: {\n    payoutConfig: {\n      proceedPayoutWithSdk: true,\n      venmoWallet: {\n        receiver: \"@customer-handle\",\n        recipientType: \"UserHandle\"\n      }\n    }\n  }\n});\n\n// Create Venmo receiver component\nconst amountComponent = pxpCheckoutSdk.create('payout-amount', {\n  label: \"Withdrawal Amount\"\n});\n\nconst venmoReceiverComponent = pxpCheckoutSdk.create('venmo-payout-receiver', {\n  label: \"Venmo Account\",\n  showMaskToggle: true\n});\n\n// Create submission with Venmo wallet type\nconst submitComponent = pxpCheckoutSdk.create('payout-submission', {\n  recipientWallet: \"Venmo\",\n  onPostPayout: (result) => {\n    showSuccessMessage('Venmo payout successful!');\n  }\n});\n\namountComponent.mount('payout-amount-container');\nvenmoReceiverComponent.mount('payout-receiver-container');\nsubmitComponent.mount('payout-submit-container');\n","lang":"typescript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PayPal and Venmo","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"// SDK configuration with both PayPal and Venmo wallets available\nconst pxpCheckoutSdk = PxpCheckout.initialize({\n  // ... other config\n  paypalConfig: {\n    payoutConfig: {\n      proceedPayoutWithSdk: true,\n      paypalWallet: {\n        email: \"customer@example.com\",\n        payerId: \"PAYER_ID_XXX\"\n      },\n      venmoWallet: {\n        receiver: \"@customer-handle\",\n        recipientType: \"UserHandle\"\n      }\n    }\n  }\n});\n\n// Create shared amount component\nconst amountComponent = pxpCheckoutSdk.create('payout-amount', {\n  label: \"Withdrawal Amount\"\n});\n\n// Create receiver components for each wallet type\nconst paypalReceiverComponent = pxpCheckoutSdk.create('paypal-payout-receiver', {\n  label: \"PayPal Account\",\n  showMaskToggle: true\n});\n\nconst venmoReceiverComponent = pxpCheckoutSdk.create('venmo-payout-receiver', {\n  label: \"Venmo Account\",\n  showMaskToggle: true\n});\n\n// Create submission component; choose wallet based on user selection\nconst submitComponent = pxpCheckoutSdk.create('payout-submission', {\n  recipientWallet: \"Paypal\", // default\n  \n  onClick: () => {\n    // Switch wallet based on UI selection before submitting\n    const selectedWallet = getSelectedWalletType(); // \"Paypal\" or \"Venmo\"\n    submitComponent.updateConfig({ recipientWallet: selectedWallet });\n  },\n  \n  onPostPayout: (result) => {\n    showSuccessMessage('Your withdrawal has been processed!');\n  }\n});\n\n// Mount components (you can toggle which receiver is visible in your own UI)\namountComponent.mount('payout-amount-container');\npaypalReceiverComponent.mount('payout-paypal-receiver-container');\nvenmoReceiverComponent.mount('payout-venmo-receiver-container');\nsubmitComponent.mount('payout-submit-container');\n","lang":"typescript"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-4-handle-payout-modes","__idx":13},"children":["Step 4: Handle payout modes"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"SDK-initiated payout","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["proceedPayoutWithSdk: true"]},", the SDK handles the complete flow:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The customer sees their stored wallet details."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The customer clicks \"Withdraw with PayPal/Venmo\"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPrePayoutSubmit"]}," is called for approval."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The SDK executes the payout automatically."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPostPayout"]}," is called with the result."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["proceedPayoutWithSdk"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," and provide both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payerId"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"paypalConfig: {\n  payoutConfig: {\n    proceedPayoutWithSdk: true,  // SDK handles payout execution\n    paypalWallet: {\n      email: \"customer@example.com\",\n      payerId: \"PAYER_ID_XXX\"\n    }\n  }\n}\n","lang":"typescript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Merchant-initiated","disable":false},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["proceedPayoutWithSdk: false"]},", your backend controls payout execution:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The customer sees their stored wallet details."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The customer clicks \"Withdraw with PayPal/Venmo\"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The SDK calls ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onClick"]}," (if you configured it), then returns without calling ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPrePayoutSubmit"]}," or executing the payout."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Your backend calls the payout API when ready."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["proceedPayoutWithSdk"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," and provide both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["payerId"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"paypalConfig: {\n  payoutConfig: {\n    proceedPayoutWithSdk: false,  // Merchant controls payout execution\n    paypalWallet: {\n      email: \"customer@example.com\",\n      payerId: \"PAYER_ID_XXX\"\n    }\n  }\n}\n","lang":"typescript"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-5-handle-errors","__idx":14},"children":["Step 5: Handle errors"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Catch create-time configuration errors when you create components. Use ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onError"]}," for runtime failures during SDK-initiated payout execution."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"try {\n  const submitComponent = pxpCheckoutSdk.create('payout-submission', {\n    recipientWallet: \"Paypal\",\n    \n    onError: (error) => {\n      console.error('Payout error:', error);\n      showError(error.message || 'An error occurred. Please try again or contact support.');\n    }\n  });\n  submitComponent.mount('payout-submit-container');\n} catch (error) {\n  // Create-time validation (for example missing payerId, invalid amount/currency)\n  console.error('Configuration error:', error);\n  showError('Payout is not configured correctly. Please contact support.');\n}\n","lang":"typescript"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"step-6-unmount-the-components","__idx":15},"children":["Step 6: Unmount the components"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Clean up the components when they're no longer needed."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"amountComponent.unmount();\nreceiverComponent.unmount();\nsubmitComponent.unmount();\n","lang":"typescript"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"example","__idx":16},"children":["Example"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following example shows a complete withdrawal flow implementation for returning customers."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"import { PxpCheckout, IntentType, CurrencyType } from \"@pxpio/web-components-sdk\";\n\nasync function initializeWithdrawalPage() {\n  // Get session data from your backend\n  const sessionData = await getSessionDataFromBackend();\n  \n  // Get stored customer wallet details\n  const customerWallet = await getStoredCustomerWallet();\n  const payoutAmount = 150.00;\n  \n  // Initialise SDK with stored wallet details (withdrawal flow)\n  const pxpCheckoutSdk = PxpCheckout.initialize({\n    environment: \"test\",\n    session: sessionData,\n    ownerId: \"Unity\",\n    ownerType: \"MerchantGroup\",\n    transactionData: {\n      amount: payoutAmount,\n      currency: \"USD\" as CurrencyType,\n      entryType: \"Ecom\",\n      intent: { paypal: IntentType.Payout },\n      merchantTransactionId: crypto.randomUUID(),\n      merchantTransactionDate: () => new Date().toISOString()\n    },\n    paypalConfig: {\n      payoutConfig: {\n        proceedPayoutWithSdk: true,\n        paypalWallet: {\n          email: customerWallet.email,\n          payerId: customerWallet.payerId\n        }\n      }\n    }\n  });\n\n  // Create amount display component\n  const amountComponent = pxpCheckoutSdk.create('payout-amount', {\n    label: \"Withdrawal Amount\",\n    style: {\n      fontSize: \"24px\",\n      fontWeight: \"bold\",\n      color: \"#2e7d32\"\n    }\n  });\n\n  // Create receiver display component\n  const receiverComponent = pxpCheckoutSdk.create('paypal-payout-receiver', {\n    label: \"Sending to\",\n    showMaskToggle: true,\n    style: {\n      backgroundColor: \"#f5f5f5\",\n      padding: \"16px\",\n      borderRadius: \"8px\"\n    }\n  });\n\n  // Create submission button\n  const submitComponent = pxpCheckoutSdk.create('payout-submission', {\n    recipientWallet: \"Paypal\",\n    submitText: \"Withdraw to PayPal\",\n    \n    styles: {\n      base: {\n        backgroundColor: \"#FFC438\",\n        color: \"#09090C\",\n        borderRadius: \"8px\",\n        padding: \"16px 32px\",\n        fontSize: \"18px\",\n        fontWeight: \"bold\",\n        width: \"100%\"\n      },\n      hover: {\n        backgroundColor: \"#F7B731\"\n      }\n    },\n    \n    onClick: () => {\n      trackEvent(\"payout_button_clicked\");\n    },\n    \n    onPrePayoutSubmit: async () => {\n      // Perform validation\n      const balance = await checkUserBalance();\n      if (balance < payoutAmount) {\n        showError(\"Insufficient balance for this withdrawal.\");\n        return { isApproved: false };\n      }\n      \n      // Show confirmation dialog\n      const confirmed = await showConfirmationModal({\n        title: \"Confirm Withdrawal\",\n        details: [\n          `Amount: $${payoutAmount.toFixed(2)}`,\n          `To: ${maskEmail(customerWallet.email)}`,\n          `Processing time: 1-2 business days`\n        ],\n        confirmText: \"Confirm Withdrawal\",\n        cancelText: \"Cancel\"\n      });\n      \n      if (!confirmed) {\n        trackEvent(\"payout_cancelled_by_user\");\n        return { isApproved: false };\n      }\n      \n      trackEvent(\"payout_approved\");\n      return { \n        isApproved: true,\n        // Included with Venmo payouts only\n        note: recipientWallet === \"Venmo\" ? `Withdrawal request from user ${getCurrentUserId()}` : undefined\n      };\n    },\n    \n    onPostPayout: (data) => {\n      console.log(\"Payout successful:\", data);\n      \n      trackEvent(\"payout_completed\", {\n        merchantTransactionId: data.merchantTransactionId,\n        systemTransactionId: data.systemTransactionId,\n        amount: payoutAmount\n      });\n      \n      // Update local balance\n      updateUserBalance(balance - payoutAmount);\n      \n      // Show success animation\n      showSuccessAnimation();\n      \n      // Redirect to success page\n      setTimeout(() => {\n        window.location.href = `/success?txn=${data.merchantTransactionId}`;\n      }, 1500);\n    },\n    \n    onError: (error) => {\n      console.error(\"Payout error:\", error);\n      \n      trackEvent(\"payout_failed\", {\n        errorCode: error.errorCode,\n        httpStatusCode: error.httpStatusCode\n      });\n      \n      handlePayoutError(error);\n    }\n  });\n\n  // Mount all components\n  amountComponent.mount('payout-amount-container');\n  receiverComponent.mount('payout-receiver-container');\n  submitComponent.mount('payout-submit-container');\n}\n\ninitializeWithdrawalPage();\n","lang":"typescript"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"html","header":{"controls":{"copy":{}}},"source":"<div class=\"payout-page returning-customer\">\n  <h1>Withdraw funds</h1>\n  <p class=\"subtitle\">Review your withdrawal details below</p>\n  \n  <div class=\"payout-card\">\n    <div id=\"payout-amount-container\"></div>\n    <div class=\"divider\"></div>\n    <div id=\"payout-receiver-container\"></div>\n    <div class=\"divider\"></div>\n    <div id=\"payout-submit-container\"></div>\n  </div>\n  \n  <p class=\"info-text\">\n    <a href=\"/account/change-payout-method\">Use a different PayPal account?</a>\n  </p>\n</div>\n","lang":"html"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"callback-data","__idx":17},"children":["Callback data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This section describes the data received by the different callbacks as part of the withdrawal flow."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"onprepayoutsubmit","__idx":18},"children":["onPrePayoutSubmit"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPrePayoutSubmit"]}," callback is called before payout execution when ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["proceedPayoutWithSdk"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},". Provide this callback for SDK-initiated payouts — without it, the SDK does not execute the payout. Return an object indicating whether to proceed."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"onPrePayoutSubmit: async () => {\n  const approved = await showConfirmationDialog();\n  return { \n    isApproved: approved,\n    // Included with Venmo payouts only (max 4000 characters; longer notes are truncated)\n    note: recipientWallet === \"Venmo\" ? \"Optional transaction note\" : undefined\n  };\n}\n","lang":"typescript"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Return Property"},"children":["Return Property"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isApproved"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Required","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Whether to proceed with the payout. Return ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["false"]}," to cancel."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["note"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Optional. Included with Venmo payouts only (max 4000 characters; longer notes are truncated with a console warning)."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"onpostpayout","__idx":19},"children":["onPostPayout"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onPostPayout"]}," callback receives the payout result when the transaction completes successfully."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"onPostPayout: (data) => {\n  console.log(\"Transaction details:\", data.merchantTransactionId, data.systemTransactionId);\n}\n","lang":"typescript"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Object containing transaction identifiers."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.merchantTransactionId"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Your unique identifier for the transaction. Use this with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["systemTransactionId"]}," to retrieve full authorisation details from the Unity backend."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.systemTransactionId"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["The system's unique identifier for the transaction. Use this with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["merchantTransactionId"]}," to retrieve full authorisation details from the Unity backend."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"onerror","__idx":20},"children":["onError"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["onError"]}," callback receives error information when the payout fails."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"typescript","header":{"controls":{"copy":{}}},"source":"{\n  errorCode: \"NOT_AUTHENTICATED\",\n  errorReason: \"Invalid or missing credentials.\",\n  httpStatusCode: 401,\n  correlationId: \"69ba98c0-ecd8-4c19-8e17-bcbf61e66a24\",\n  details: []\n}\n","lang":"typescript"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"align":"left","data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["The error object containing details about what went wrong."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.correlationId"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Optional. The correlation ID for tracking the error."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.details"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["array"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Optional. Array of additional error details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.errorCode"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["The error code identifier (e.g., \"NOT_AUTHENTICATED\")."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.errorReason"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["Human-readable error reason (e.g., \"Invalid or missing credentials.\")."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error.httpStatusCode"]},{"$$mdtype":"Tag","name":"Break","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Details","attributes":{},"children":["number"]}]},{"$$mdtype":"Tag","name":"td","attributes":{"align":"left"},"children":["The HTTP status code of the response."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"whats-next","__idx":21},"children":["What's next?"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Now that you've implemented the withdrawal flow, here are some recommended next steps:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/payout/components/web/paypal/about-configuration"},"children":["About configuration"]},":"]}," Learn how to customize the payout components."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/payout/components/web/paypal/testing"},"children":["Testing"]},":"]}," Use PayPal's sandbox environment to test payouts."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/payout/components/web/paypal/events"},"children":["Events"]},":"]}," Explore all available callbacks and event handling."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/guides/payout/components/web/paypal/troubleshooting"},"children":["Troubleshooting"]},":"]}," Find solutions to common payout issues."]}]}]},"headings":[{"value":"Withdrawal flow","id":"withdrawal-flow","depth":1},{"value":"Overview","id":"overview","depth":2},{"value":"Before you start","id":"before-you-start","depth":2},{"value":"Payout flow","id":"payout-flow","depth":2},{"value":"Step 1: Display payout details","id":"step-1-display-payout-details","depth":3},{"value":"Step 2: Submission","id":"step-2-submission","depth":3},{"value":"Step 3: Payout approval (SDK-initiated)","id":"step-3-payout-approval-sdk-initiated","depth":3},{"value":"Step 4: Payout execution","id":"step-4-payout-execution","depth":3},{"value":"Step 5: Payout result (SDK-initiated)","id":"step-5-payout-result-sdk-initiated","depth":3},{"value":"Implementation","id":"implementation","depth":2},{"value":"Step 1: Configure your SDK","id":"step-1-configure-your-sdk","depth":3},{"value":"Step 2: Add the HTML containers","id":"step-2-add-the-html-containers","depth":3},{"value":"Step 3: Create and mount the components","id":"step-3-create-and-mount-the-components","depth":3},{"value":"Step 4: Handle payout modes","id":"step-4-handle-payout-modes","depth":3},{"value":"Step 5: Handle errors","id":"step-5-handle-errors","depth":3},{"value":"Step 6: Unmount the components","id":"step-6-unmount-the-components","depth":3},{"value":"Example","id":"example","depth":2},{"value":"Callback data","id":"callback-data","depth":2},{"value":"onPrePayoutSubmit","id":"onprepayoutsubmit","depth":3},{"value":"onPostPayout","id":"onpostpayout","depth":3},{"value":"onError","id":"onerror","depth":3},{"value":"What's next?","id":"whats-next","depth":2}],"frontmatter":{"seo":{"title":"Withdrawal flow"}},"lastModified":"2026-11-11T13:55:54.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/payout/components/web/paypal/withdrawal-flow","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}