Changeset 3197888
- Timestamp:
- 11/27/2024 07:14:37 AM (16 months ago)
- Location:
- depay-payments-for-woocommerce
- Files:
-
- 14 edited
- 1 copied
-
tags/2.12.8 (copied) (copied from depay-payments-for-woocommerce/trunk)
-
tags/2.12.8/changelog.txt (modified) (1 diff)
-
tags/2.12.8/depay-woocommerce-payments.php (modified) (2 diffs)
-
tags/2.12.8/dist/checkout.js (modified) (1 diff)
-
tags/2.12.8/languages/depay-woocommerce-payments.pot (modified) (1 diff)
-
tags/2.12.8/package.json (modified) (1 diff)
-
tags/2.12.8/readme.txt (modified) (1 diff)
-
tags/2.12.8/src/checkout.js (modified) (1 diff)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/depay-woocommerce-payments.php (modified) (2 diffs)
-
trunk/dist/checkout.js (modified) (1 diff)
-
trunk/languages/depay-woocommerce-payments.pot (modified) (1 diff)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/checkout.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
depay-payments-for-woocommerce/tags/2.12.8/changelog.txt
r3184766 r3197888 1 1 *** DePay Web3 Payments for WooCommerce Changelog *** 2 3 2024-11-27 - version 2.12.8 4 * fixes checkout issues when users are creating accounts during checkout 2 5 3 6 2024-11-9 - version 2.12.7 -
depay-payments-for-woocommerce/tags/2.12.8/depay-woocommerce-payments.php
r3184766 r3197888 12 12 * Requires at least: 5.8 13 13 * Requires PHP: 7.0 14 * Version: 2.12. 714 * Version: 2.12.8 15 15 * 16 16 * @package DePay\Payments … … 22 22 define( 'DEPAY_WC_ABSPATH', __DIR__ . '/' ); 23 23 define( 'DEPAY_MIN_WC_ADMIN_VERSION', '0.23.2' ); 24 define( 'DEPAY_CURRENT_VERSION', '2.12. 7' );24 define( 'DEPAY_CURRENT_VERSION', '2.12.8' ); 25 25 26 26 require_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 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DePay WooCommerce Payments 2.12. 7\n"5 "Project-Id-Version: DePay WooCommerce Payments 2.12.8\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "support@depay.com\n" -
depay-payments-for-woocommerce/tags/2.12.8/package.json
r3184766 r3197888 2 2 "name": "@depay/web3-woocommerce-depay-payments", 3 3 "moduleName": "WooCommerceDePayPayments", 4 "version": "2.12. 7",4 "version": "2.12.8", 5 5 "description": "WooCommerce DePay plugin to accept Web3 payments directly into your wallet with on-the-fly conversion.", 6 6 "main": "./dist/umd/index.js", -
depay-payments-for-woocommerce/tags/2.12.8/readme.txt
r3184766 r3197888 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.2 7 Stable tag: 2.12. 77 Stable tag: 2.12.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
depay-payments-for-woocommerce/tags/2.12.8/src/checkout.js
r3170279 r3197888 39 39 const response = JSON.parse(await wp.apiRequest({ 40 40 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 } 42 49 })) 43 50 if(response.redirect) { -
depay-payments-for-woocommerce/trunk/changelog.txt
r3184766 r3197888 1 1 *** DePay Web3 Payments for WooCommerce Changelog *** 2 3 2024-11-27 - version 2.12.8 4 * fixes checkout issues when users are creating accounts during checkout 2 5 3 6 2024-11-9 - version 2.12.7 -
depay-payments-for-woocommerce/trunk/depay-woocommerce-payments.php
r3184766 r3197888 12 12 * Requires at least: 5.8 13 13 * Requires PHP: 7.0 14 * Version: 2.12. 714 * Version: 2.12.8 15 15 * 16 16 * @package DePay\Payments … … 22 22 define( 'DEPAY_WC_ABSPATH', __DIR__ . '/' ); 23 23 define( 'DEPAY_MIN_WC_ADMIN_VERSION', '0.23.2' ); 24 define( 'DEPAY_CURRENT_VERSION', '2.12. 7' );24 define( 'DEPAY_CURRENT_VERSION', '2.12.8' ); 25 25 26 26 require_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 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DePay WooCommerce Payments 2.12. 7\n"5 "Project-Id-Version: DePay WooCommerce Payments 2.12.8\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "support@depay.com\n" -
depay-payments-for-woocommerce/trunk/package.json
r3184766 r3197888 2 2 "name": "@depay/web3-woocommerce-depay-payments", 3 3 "moduleName": "WooCommerceDePayPayments", 4 "version": "2.12. 7",4 "version": "2.12.8", 5 5 "description": "WooCommerce DePay plugin to accept Web3 payments directly into your wallet with on-the-fly conversion.", 6 6 "main": "./dist/umd/index.js", -
depay-payments-for-woocommerce/trunk/readme.txt
r3184766 r3197888 5 5 Tested up to: 6.5 6 6 Requires PHP: 7.2 7 Stable tag: 2.12. 77 Stable tag: 2.12.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
depay-payments-for-woocommerce/trunk/src/checkout.js
r3170279 r3197888 39 39 const response = JSON.parse(await wp.apiRequest({ 40 40 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 } 42 49 })) 43 50 if(response.redirect) {
Note: See TracChangeset
for help on using the changeset viewer.