Plugin Directory

Changeset 3197888


Ignore:
Timestamp:
11/27/2024 07:14:37 AM (16 months ago)
Author:
depayfi
Message:

Update to version 2.12.8 from GitHub

Location:
depay-payments-for-woocommerce
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • depay-payments-for-woocommerce/tags/2.12.8/changelog.txt

    r3184766 r3197888  
    11*** DePay Web3 Payments for WooCommerce Changelog ***
     2
     32024-11-27 - version 2.12.8
     4* fixes checkout issues when users are creating accounts during checkout
    25
    362024-11-9 - version 2.12.7
  • depay-payments-for-woocommerce/tags/2.12.8/depay-woocommerce-payments.php

    r3184766 r3197888  
    1212 * Requires at least: 5.8
    1313 * Requires PHP: 7.0
    14  * Version: 2.12.7
     14 * Version: 2.12.8
    1515 *
    1616 * @package DePay\Payments
     
    2222define( 'DEPAY_WC_ABSPATH', __DIR__ . '/' );
    2323define( 'DEPAY_MIN_WC_ADMIN_VERSION', '0.23.2' );
    24 define( 'DEPAY_CURRENT_VERSION', '2.12.7' );
     24define( 'DEPAY_CURRENT_VERSION', '2.12.8' );
    2525
    2626require_once DEPAY_WC_ABSPATH . '/vendor/autoload.php';
  • depay-payments-for-woocommerce/tags/2.12.8/dist/checkout.js

    r3170279 r3197888  
    1 !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";!function(){jQuery((function(e){e(document).ajaxError((function(){"function"==typeof window._depayUnmountLoading&&window._depayUnmountLoading()})),e(document).ajaxComplete((function(){"function"==typeof window._depayUnmountLoading&&window._depayUnmountLoading()})),e("form.woocommerce-checkout").on("submit",(async()=>{if(e("form.woocommerce-checkout").serialize().match("payment_method=depay_wc_payments")){let{unmount:e}=await DePayWidgets.Loading({text:"Loading payment data..."});setTimeout(e,1e4)}}))}));const e={ethereum:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",bsc:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",polygon:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",solana:"5hqJfrh7SrokFqj16anNqACyUv1PCg7oEqi7oUya1kMQ",fantom:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",gnosis:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",avalanche:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",arbitrum:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",optimism:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",base:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",worldchain:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb"},a=async()=>{if(window.location.hash.startsWith("#wc-depay-checkout-")){const a=window.location.hash.match(/wc-depay-checkout-(.*?)@/)[1],o=JSON.parse(await wp.apiRequest({path:`/depay/wc/checkouts/${a}`,method:"POST"}));if(o.redirect)return void(window.location=o.redirect);let t={accept:o.map((a=>({...a,fee:{amount:"1.5%",receiver:e[a.blockchain]}}))),closed:()=>{window.location.hash="",window.location.reload(!0)},track:{method:e=>new Promise(((o,t)=>{try{wp.apiRequest({path:`/depay/wc/checkouts/${a}/track`,method:"POST",data:e}).done((()=>o({status:200}))).fail(((e,a)=>t(a)))}catch(e){t()}})),poll:{method:()=>new Promise(((e,o)=>{wp.apiRequest({path:"/depay/wc/release",method:"POST",data:{checkout_id:a}}).done((a=>{e(a)})).fail(e)}))}}};window.DEPAY_WC_CURRENCY&&"store"==window.DEPAY_WC_CURRENCY.displayCurrency&&function(e){let a,o=e[0],t=1;for(;t<e.length;){const n=e[t],c=e[t+1];if(t+=2,("optionalAccess"===n||"optionalCall"===n)&&null==o)return;"access"===n||"optionalAccess"===n?(a=o,o=c(o)):"call"!==n&&"optionalCall"!==n||(o=c(((...e)=>o.call(a,...e))),a=void 0)}return o}([window,"access",e=>e.DEPAY_WC_CURRENCY,"access",e=>e.storeCurrency,"optionalAccess",e=>e.length])&&(t.currency=window.DEPAY_WC_CURRENCY.storeCurrency),DePayWidgets.Payment(t)}};document.addEventListener("DOMContentLoaded",a),window.addEventListener("hashchange",a)}()}));
     1!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){let o,a=e[0],c=1;for(;c<e.length;){const n=e[c],t=e[c+1];if(c+=2,("optionalAccess"===n||"optionalCall"===n)&&null==a)return;"access"===n||"optionalAccess"===n?(o=a,a=t(a)):"call"!==n&&"optionalCall"!==n||(a=t(((...e)=>a.call(o,...e))),o=void 0)}return a}!function(){jQuery((function(e){e(document).ajaxError((function(){"function"==typeof window._depayUnmountLoading&&window._depayUnmountLoading()})),e(document).ajaxComplete((function(){"function"==typeof window._depayUnmountLoading&&window._depayUnmountLoading()})),e("form.woocommerce-checkout").on("submit",(async()=>{if(e("form.woocommerce-checkout").serialize().match("payment_method=depay_wc_payments")){let{unmount:e}=await DePayWidgets.Loading({text:"Loading payment data..."});setTimeout(e,1e4)}}))}));const o={ethereum:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",bsc:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",polygon:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",solana:"5hqJfrh7SrokFqj16anNqACyUv1PCg7oEqi7oUya1kMQ",fantom:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",gnosis:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",avalanche:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",arbitrum:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",optimism:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",base:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",worldchain:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb"},a=async()=>{if(window.location.hash.startsWith("#wc-depay-checkout-")){const a=window.location.hash.match(/wc-depay-checkout-(.*?)@/)[1],c=JSON.parse(await wp.apiRequest({path:`/depay/wc/checkouts/${a}`,method:"POST",headers:{"X-WP-Nonce":e([wpApiSettings,"optionalAccess",e=>e.nonce])}}).catch((o=>{"rest_cookie_invalid_nonce"===e([o,"optionalAccess",e=>e.responseJSON,"optionalAccess",e=>e.code])&&window.location.reload(!0)})));if(c.redirect)return void(window.location=c.redirect);let n={accept:c.map((e=>({...e,fee:{amount:"1.5%",receiver:o[e.blockchain]}}))),closed:()=>{window.location.hash="",window.location.reload(!0)},track:{method:e=>new Promise(((o,c)=>{try{wp.apiRequest({path:`/depay/wc/checkouts/${a}/track`,method:"POST",data:e}).done((()=>o({status:200}))).fail(((e,o)=>c(o)))}catch(e){c()}})),poll:{method:()=>new Promise(((e,o)=>{wp.apiRequest({path:"/depay/wc/release",method:"POST",data:{checkout_id:a}}).done((o=>{e(o)})).fail(e)}))}}};window.DEPAY_WC_CURRENCY&&"store"==window.DEPAY_WC_CURRENCY.displayCurrency&&e([window,"access",e=>e.DEPAY_WC_CURRENCY,"access",e=>e.storeCurrency,"optionalAccess",e=>e.length])&&(n.currency=window.DEPAY_WC_CURRENCY.storeCurrency),DePayWidgets.Payment(n)}};document.addEventListener("DOMContentLoaded",a),window.addEventListener("hashchange",a)}()}));
  • depay-payments-for-woocommerce/tags/2.12.8/languages/depay-woocommerce-payments.pot

    r3184766 r3197888  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DePay WooCommerce Payments 2.12.7\n"
     5"Project-Id-Version: DePay WooCommerce Payments 2.12.8\n"
    66"Report-Msgid-Bugs-To: "
    77"support@depay.com\n"
  • depay-payments-for-woocommerce/tags/2.12.8/package.json

    r3184766 r3197888  
    22  "name": "@depay/web3-woocommerce-depay-payments",
    33  "moduleName": "WooCommerceDePayPayments",
    4   "version": "2.12.7",
     4  "version": "2.12.8",
    55  "description": "WooCommerce DePay plugin to accept Web3 payments directly into your wallet with on-the-fly conversion.",
    66  "main": "./dist/umd/index.js",
  • depay-payments-for-woocommerce/tags/2.12.8/readme.txt

    r3184766 r3197888  
    55Tested up to: 6.5
    66Requires PHP: 7.2
    7 Stable tag: 2.12.7
     7Stable tag: 2.12.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • depay-payments-for-woocommerce/tags/2.12.8/src/checkout.js

    r3170279 r3197888  
    3939    const response = JSON.parse(await wp.apiRequest({
    4040      path: `/depay/wc/checkouts/${checkoutId}`,
    41       method: 'POST'
     41      method: 'POST',
     42      headers: {
     43        'X-WP-Nonce': wpApiSettings?.nonce, // Use WordPress's REST API nonce
     44      },
     45    }).catch((error)=>{
     46      if(error?.responseJSON?.code === 'rest_cookie_invalid_nonce') {
     47        window.location.reload(true)
     48      }
    4249    }))
    4350    if(response.redirect) {
  • depay-payments-for-woocommerce/trunk/changelog.txt

    r3184766 r3197888  
    11*** DePay Web3 Payments for WooCommerce Changelog ***
     2
     32024-11-27 - version 2.12.8
     4* fixes checkout issues when users are creating accounts during checkout
    25
    362024-11-9 - version 2.12.7
  • depay-payments-for-woocommerce/trunk/depay-woocommerce-payments.php

    r3184766 r3197888  
    1212 * Requires at least: 5.8
    1313 * Requires PHP: 7.0
    14  * Version: 2.12.7
     14 * Version: 2.12.8
    1515 *
    1616 * @package DePay\Payments
     
    2222define( 'DEPAY_WC_ABSPATH', __DIR__ . '/' );
    2323define( 'DEPAY_MIN_WC_ADMIN_VERSION', '0.23.2' );
    24 define( 'DEPAY_CURRENT_VERSION', '2.12.7' );
     24define( 'DEPAY_CURRENT_VERSION', '2.12.8' );
    2525
    2626require_once DEPAY_WC_ABSPATH . '/vendor/autoload.php';
  • depay-payments-for-woocommerce/trunk/dist/checkout.js

    r3170279 r3197888  
    1 !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";!function(){jQuery((function(e){e(document).ajaxError((function(){"function"==typeof window._depayUnmountLoading&&window._depayUnmountLoading()})),e(document).ajaxComplete((function(){"function"==typeof window._depayUnmountLoading&&window._depayUnmountLoading()})),e("form.woocommerce-checkout").on("submit",(async()=>{if(e("form.woocommerce-checkout").serialize().match("payment_method=depay_wc_payments")){let{unmount:e}=await DePayWidgets.Loading({text:"Loading payment data..."});setTimeout(e,1e4)}}))}));const e={ethereum:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",bsc:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",polygon:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",solana:"5hqJfrh7SrokFqj16anNqACyUv1PCg7oEqi7oUya1kMQ",fantom:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",gnosis:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",avalanche:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",arbitrum:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",optimism:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",base:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",worldchain:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb"},a=async()=>{if(window.location.hash.startsWith("#wc-depay-checkout-")){const a=window.location.hash.match(/wc-depay-checkout-(.*?)@/)[1],o=JSON.parse(await wp.apiRequest({path:`/depay/wc/checkouts/${a}`,method:"POST"}));if(o.redirect)return void(window.location=o.redirect);let t={accept:o.map((a=>({...a,fee:{amount:"1.5%",receiver:e[a.blockchain]}}))),closed:()=>{window.location.hash="",window.location.reload(!0)},track:{method:e=>new Promise(((o,t)=>{try{wp.apiRequest({path:`/depay/wc/checkouts/${a}/track`,method:"POST",data:e}).done((()=>o({status:200}))).fail(((e,a)=>t(a)))}catch(e){t()}})),poll:{method:()=>new Promise(((e,o)=>{wp.apiRequest({path:"/depay/wc/release",method:"POST",data:{checkout_id:a}}).done((a=>{e(a)})).fail(e)}))}}};window.DEPAY_WC_CURRENCY&&"store"==window.DEPAY_WC_CURRENCY.displayCurrency&&function(e){let a,o=e[0],t=1;for(;t<e.length;){const n=e[t],c=e[t+1];if(t+=2,("optionalAccess"===n||"optionalCall"===n)&&null==o)return;"access"===n||"optionalAccess"===n?(a=o,o=c(o)):"call"!==n&&"optionalCall"!==n||(o=c(((...e)=>o.call(a,...e))),a=void 0)}return o}([window,"access",e=>e.DEPAY_WC_CURRENCY,"access",e=>e.storeCurrency,"optionalAccess",e=>e.length])&&(t.currency=window.DEPAY_WC_CURRENCY.storeCurrency),DePayWidgets.Payment(t)}};document.addEventListener("DOMContentLoaded",a),window.addEventListener("hashchange",a)}()}));
     1!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){let o,a=e[0],c=1;for(;c<e.length;){const n=e[c],t=e[c+1];if(c+=2,("optionalAccess"===n||"optionalCall"===n)&&null==a)return;"access"===n||"optionalAccess"===n?(o=a,a=t(a)):"call"!==n&&"optionalCall"!==n||(a=t(((...e)=>a.call(o,...e))),o=void 0)}return a}!function(){jQuery((function(e){e(document).ajaxError((function(){"function"==typeof window._depayUnmountLoading&&window._depayUnmountLoading()})),e(document).ajaxComplete((function(){"function"==typeof window._depayUnmountLoading&&window._depayUnmountLoading()})),e("form.woocommerce-checkout").on("submit",(async()=>{if(e("form.woocommerce-checkout").serialize().match("payment_method=depay_wc_payments")){let{unmount:e}=await DePayWidgets.Loading({text:"Loading payment data..."});setTimeout(e,1e4)}}))}));const o={ethereum:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",bsc:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",polygon:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",solana:"5hqJfrh7SrokFqj16anNqACyUv1PCg7oEqi7oUya1kMQ",fantom:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",gnosis:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",avalanche:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",arbitrum:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",optimism:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",base:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb",worldchain:"0x9Db58B260EfAa2d6a94bEb7E219d073dF51cc7Bb"},a=async()=>{if(window.location.hash.startsWith("#wc-depay-checkout-")){const a=window.location.hash.match(/wc-depay-checkout-(.*?)@/)[1],c=JSON.parse(await wp.apiRequest({path:`/depay/wc/checkouts/${a}`,method:"POST",headers:{"X-WP-Nonce":e([wpApiSettings,"optionalAccess",e=>e.nonce])}}).catch((o=>{"rest_cookie_invalid_nonce"===e([o,"optionalAccess",e=>e.responseJSON,"optionalAccess",e=>e.code])&&window.location.reload(!0)})));if(c.redirect)return void(window.location=c.redirect);let n={accept:c.map((e=>({...e,fee:{amount:"1.5%",receiver:o[e.blockchain]}}))),closed:()=>{window.location.hash="",window.location.reload(!0)},track:{method:e=>new Promise(((o,c)=>{try{wp.apiRequest({path:`/depay/wc/checkouts/${a}/track`,method:"POST",data:e}).done((()=>o({status:200}))).fail(((e,o)=>c(o)))}catch(e){c()}})),poll:{method:()=>new Promise(((e,o)=>{wp.apiRequest({path:"/depay/wc/release",method:"POST",data:{checkout_id:a}}).done((o=>{e(o)})).fail(e)}))}}};window.DEPAY_WC_CURRENCY&&"store"==window.DEPAY_WC_CURRENCY.displayCurrency&&e([window,"access",e=>e.DEPAY_WC_CURRENCY,"access",e=>e.storeCurrency,"optionalAccess",e=>e.length])&&(n.currency=window.DEPAY_WC_CURRENCY.storeCurrency),DePayWidgets.Payment(n)}};document.addEventListener("DOMContentLoaded",a),window.addEventListener("hashchange",a)}()}));
  • depay-payments-for-woocommerce/trunk/languages/depay-woocommerce-payments.pot

    r3184766 r3197888  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DePay WooCommerce Payments 2.12.7\n"
     5"Project-Id-Version: DePay WooCommerce Payments 2.12.8\n"
    66"Report-Msgid-Bugs-To: "
    77"support@depay.com\n"
  • depay-payments-for-woocommerce/trunk/package.json

    r3184766 r3197888  
    22  "name": "@depay/web3-woocommerce-depay-payments",
    33  "moduleName": "WooCommerceDePayPayments",
    4   "version": "2.12.7",
     4  "version": "2.12.8",
    55  "description": "WooCommerce DePay plugin to accept Web3 payments directly into your wallet with on-the-fly conversion.",
    66  "main": "./dist/umd/index.js",
  • depay-payments-for-woocommerce/trunk/readme.txt

    r3184766 r3197888  
    55Tested up to: 6.5
    66Requires PHP: 7.2
    7 Stable tag: 2.12.7
     7Stable tag: 2.12.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • depay-payments-for-woocommerce/trunk/src/checkout.js

    r3170279 r3197888  
    3939    const response = JSON.parse(await wp.apiRequest({
    4040      path: `/depay/wc/checkouts/${checkoutId}`,
    41       method: 'POST'
     41      method: 'POST',
     42      headers: {
     43        'X-WP-Nonce': wpApiSettings?.nonce, // Use WordPress's REST API nonce
     44      },
     45    }).catch((error)=>{
     46      if(error?.responseJSON?.code === 'rest_cookie_invalid_nonce') {
     47        window.location.reload(true)
     48      }
    4249    }))
    4350    if(response.redirect) {
Note: See TracChangeset for help on using the changeset viewer.