{"id":6980,"date":"2021-12-08T14:34:33","date_gmt":"2021-12-08T14:34:33","guid":{"rendered":"http:\/\/a8759758b2.nxcli.io\/?post_type=docs&#038;p=6980"},"modified":"2024-12-12T12:35:34","modified_gmt":"2024-12-12T12:35:34","password":"","slug":"integraciones-pro-store-credit","status":"publish","type":"docs","link":"https:\/\/couponaffiliates.com\/es\/docs\/pro-store-credit-integrations\/","title":{"rendered":"(PRO) Pagos a cr\u00e9dito en tienda - Integraciones"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Los addons de integraci\u00f3n le permitir\u00e1n utilizar un plugin de cr\u00e9dito\/monedero diferente, en lugar de nuestro sistema de monedero integrado, cuando pague comisiones a sus afiliados como cr\u00e9dito de tienda. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A continuaci\u00f3n, puede seleccionar el sistema que desea utilizar en la configuraci\u00f3n del complemento (en \"Pagos con cr\u00e9dito de la tienda\").<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"600\" height=\"148\" src=\"https:\/\/couponaffiliates.com\/wp-content\/uploads\/2021\/12\/gif-1-4eae6d9e0b79.gif\" alt=\"\" class=\"wp-image-6974\"\/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Los siguientes complementos de integraci\u00f3n pueden descargarse ahora mismo:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>TeraWallet - Para WooCommerce<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Plugin: <a href=\"https:\/\/wordpress.org\/plugins\/woo-wallet\" target=\"_blank\" rel=\"noreferrer noopener\">Haga clic aqu\u00ed<\/a><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Complemento de integraci\u00f3n: <a href=\"https:\/\/couponaffiliates.com\/es\/complementos\/integracion-de-terawallet\/\" target=\"_blank\" rel=\"noreferrer noopener\">Haga clic aqu\u00ed<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>YITH WooCommerce Fondos de Cuenta<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Plugin: <a href=\"https:\/\/yithemes.com\/themes\/plugins\/yith-woocommerce-account-funds\" data-type=\"URL\" target=\"_blank\" rel=\"noreferrer noopener\">Haga clic aqu\u00ed<\/a><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Complemento de integraci\u00f3n: <a href=\"https:\/\/couponaffiliates.com\/es\/complementos\/integracion-de-yithfunds\/\" target=\"_blank\" rel=\"noreferrer noopener\">Haga clic aqu\u00ed<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity is-style-wide\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u00bfDesea que desarrollemos un complemento de integraci\u00f3n para otro complemento de monedero? Por favor <a href=\"https:\/\/roadmap.couponaffiliates.com\/boards\/feature-requests\" target=\"_blank\" rel=\"noreferrer noopener\">enviar una sugerencia<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Integraciones personalizadas<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Para desarrollar tus propias integraciones personalizadas existe el hook \"wcusage_hook_custom_credit_create_payout\" que puedes utilizar para anular los pagos de cr\u00e9dito de la tienda, pagarlo en un monedero personalizado y luego marcarlo como pagado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Por ejemplo, as\u00ed es como se hace con la integraci\u00f3n de TerraWallet:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"\/*** TeraWallet - Credit Create Payout** @param string $system* @param int $user_id* @param int $amount**\/add_filter('wcusage_hook_custom_credit_create_payout', 'my_custom_credit_create_payout', 10, 3);function my_custom_credit_create_payout( $system, $user_id, $amount ) {\t    $paid = 0;  \/\/ Make the payment using the wallet plugins credit function  if( $system == $this-&gt;get_system_id &amp;&amp; is_plugin_active( $this-&gt;get_system_file ) ) {    $label = &quot;Affiliate Commission&quot;;    woo_wallet()-&gt;wallet-&gt;credit( $user_id, sanitize_text_field( $amount ), $label );    $paid = 1;  }\t  return $paid;}\/*** TeraWallet - Settings - Get Balance** @param string $system* @param int $user_id**\/add_filter('wcusage_hook_custom_credit_balance', 'my_custom_credit_balance', 10, 2);function my_custom_credit_balance( $system, $user_id ) {\t    $integration = new wcusage_credit_integration();  $credit = &quot;&quot;;  \/\/ Get the custom credit amount if plugin exists  if ( function_exists('woo_wallet') &amp;&amp; is_plugin_active( $this-&gt;get_system_file ) ) {    $credit = woo_wallet()-&gt;wallet-&gt;get_wallet_balance( $user_id, 0 );  }  return $integration-&gt;get_balance( $credit, $system, $user_id, $this-&gt;get_system_id, $this-&gt;get_system_name, $this-&gt;get_system_file );}\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copia\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #616E88\">\/**<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">* TeraWallet - Credit Create Payout<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">* <\/span><span style=\"color: #81A1C1\">@param<\/span><span style=\"color: #616E88\"> <\/span><span style=\"color: #81A1C1\">string<\/span><span style=\"color: #616E88\"> $system<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">* <\/span><span style=\"color: #81A1C1\">@param<\/span><span style=\"color: #616E88\"> <\/span><span style=\"color: #81A1C1\">int<\/span><span style=\"color: #616E88\"> $user_id<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">* <\/span><span style=\"color: #81A1C1\">@param<\/span><span style=\"color: #616E88\"> <\/span><span style=\"color: #81A1C1\">int<\/span><span style=\"color: #616E88\"> $amount<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">*\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">add_filter<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">wcusage_hook_custom_credit_create_payout<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">my_custom_credit_create_payout<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #B48EAD\">10<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #B48EAD\">3<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">function<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">my_custom_credit_create_payout<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">system<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">user_id<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">amount<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\t  <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">paid<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">  <\/span><span style=\"color: #616E88\">\/\/ Make the payment using the wallet plugins credit function<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">system<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">==<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$this-&gt;<\/span><span style=\"color: #D8DEE9\">get_system_id<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&amp;&amp;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">is_plugin_active<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #81A1C1\">$this-&gt;<\/span><span style=\"color: #D8DEE9\">get_system_file<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">label<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">Affiliate Commission<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #88C0D0\">woo_wallet<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">-&gt;<\/span><span style=\"color: #D8DEE9\">wallet<\/span><span style=\"color: #81A1C1\">-&gt;<\/span><span style=\"color: #88C0D0\">credit<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">user_id<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">sanitize_text_field<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">amount<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #ECEFF4\">),<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">label<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">paid<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\t<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">return<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">paid<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">\/**<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">* TeraWallet - Settings - Get Balance<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">* <\/span><span style=\"color: #81A1C1\">@param<\/span><span style=\"color: #616E88\"> <\/span><span style=\"color: #81A1C1\">string<\/span><span style=\"color: #616E88\"> $system<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">* <\/span><span style=\"color: #81A1C1\">@param<\/span><span style=\"color: #616E88\"> <\/span><span style=\"color: #81A1C1\">int<\/span><span style=\"color: #616E88\"> $user_id<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #616E88\">*\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">add_filter<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">wcusage_hook_custom_credit_balance<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">my_custom_credit_balance<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #B48EAD\">10<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #B48EAD\">2<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">function<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">my_custom_credit_balance<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">system<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">user_id<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">\t  <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">integration<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">new<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">wcusage_credit_integration<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">credit<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;&quot;<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">  <\/span><span style=\"color: #616E88\">\/\/ Get the custom credit amount if plugin exists<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">function_exists<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">woo_wallet<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">&amp;&amp;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">is_plugin_active<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #81A1C1\">$this-&gt;<\/span><span style=\"color: #D8DEE9\">get_system_file<\/span><span style=\"color: #88C0D0\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">credit<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">woo_wallet<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #81A1C1\">-&gt;<\/span><span style=\"color: #D8DEE9\">wallet<\/span><span style=\"color: #81A1C1\">-&gt;<\/span><span style=\"color: #88C0D0\">get_wallet_balance<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">user_id<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">return<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">integration<\/span><span style=\"color: #81A1C1\">-&gt;<\/span><span style=\"color: #88C0D0\">get_balance<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">credit<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">system<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">user_id<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$this-&gt;<\/span><span style=\"color: #D8DEE9\">get_system_id<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$this-&gt;<\/span><span style=\"color: #D8DEE9\">get_system_name<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$this-&gt;<\/span><span style=\"color: #D8DEE9\">get_system_file<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Si eres desarrollador y necesitas m\u00e1s informaci\u00f3n sobre c\u00f3mo integrar tu propio complemento de monedero, o has creado tu propio complemento de integraci\u00f3n que quieres incluir aqu\u00ed, no dudes en contactar con <a href=\"https:\/\/couponaffiliates.com\/es\/pongase-en-contacto-con\/\" target=\"_blank\" rel=\"noreferrer noopener\">Contacto<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Integration addons will allow you to use a different store credit\/wallet plugin&#8217;s system, instead of our built-in wallet system, when paying commission into your affiliates as store credit. You can then select which system to use in the plugin settings (under &#8220;Store Credit Payouts&#8221;). The following integration addons available to download right now: TeraWallet &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":"","_links_to":"","_links_to_target":""},"doc_category":[70,63],"doc_tag":[],"class_list":["post-6980","docs","type-docs","status-publish","hentry","doc_category-integrations","doc_category-method-store-credit","wpbf-post"],"year_month":"2026-05","word_count":361,"total_views":"3275","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"display_name":"Elliot Sowersby","author_link":"#"},"doc_category_info":[{"term_name":"Integrations","term_url":"https:\/\/couponaffiliates.com\/es\/docs-category\/integrations\/"},{"term_name":"Method: Store Credit","term_url":"https:\/\/couponaffiliates.com\/es\/docs-category\/method-store-credit\/"}],"doc_tag_info":[],"taxonomy_info":{"doc_category":[{"value":70,"label":"Integrations"},{"value":63,"label":"Method: Store Credit"}]},"featured_image_src_large":false,"comment_info":0,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/docs\/6980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/comments?post=6980"}],"version-history":[{"count":13,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/docs\/6980\/revisions"}],"predecessor-version":[{"id":19365,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/docs\/6980\/revisions\/19365"}],"wp:attachment":[{"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/media?parent=6980"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/doc_category?post=6980"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/couponaffiliates.com\/es\/wp-json\/wp\/v2\/doc_tag?post=6980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}