Changeset 2897687
- Timestamp:
- 04/12/2023 08:53:25 AM (3 years ago)
- Location:
- trelis-crypto-payments
- Files:
-
- 1 deleted
- 8 edited
- 14 copied
-
tags/2.0.0 (copied) (copied from trelis-crypto-payments/trunk)
-
tags/2.0.0/LICENSE (copied) (copied from trelis-crypto-payments/trunk/LICENSE)
-
tags/2.0.0/ReadMe.txt (copied) (copied from trelis-crypto-payments/trunk/ReadMe.txt) (3 diffs)
-
tags/2.0.0/Trelis-ethereum-payment-gateway.php (deleted)
-
tags/2.0.0/admin (copied) (copied from trelis-crypto-payments/trunk/admin)
-
tags/2.0.0/admin/MeprTrelisGateway.php (modified) (1 diff)
-
tags/2.0.0/admin/class-wc-trelis-gateway.php (modified) (2 diffs)
-
tags/2.0.0/admin/class-wc-trelis-rest-api.php (modified) (2 diffs)
-
tags/2.0.0/assets (copied) (copied from trelis-crypto-payments/trunk/assets)
-
tags/2.0.0/includes (copied) (copied from trelis-crypto-payments/trunk/includes)
-
tags/2.0.0/index.php (copied) (copied from trelis-crypto-payments/trunk/index.php)
-
tags/2.0.0/languages (copied) (copied from trelis-crypto-payments/trunk/languages)
-
tags/2.0.0/languages/es_ES.mo (copied) (copied from trelis-crypto-payments/trunk/languages/es_ES.mo)
-
tags/2.0.0/languages/es_ES.po (copied) (copied from trelis-crypto-payments/trunk/languages/es_ES.po)
-
tags/2.0.0/languages/trelis-crypto-payments.pot (copied) (copied from trelis-crypto-payments/trunk/languages/trelis-crypto-payments.pot)
-
tags/2.0.0/public (copied) (copied from trelis-crypto-payments/trunk/public)
-
tags/2.0.0/trelis-crypto-payments.php (copied) (copied from trelis-crypto-payments/trunk/trelis-crypto-payments.php) (1 diff)
-
tags/2.0.0/uninstall.php (copied) (copied from trelis-crypto-payments/trunk/uninstall.php)
-
trunk/ReadMe.txt (modified) (3 diffs)
-
trunk/admin/MeprTrelisGateway.php (modified) (1 diff)
-
trunk/admin/class-wc-trelis-gateway.php (modified) (2 diffs)
-
trunk/admin/class-wc-trelis-rest-api.php (modified) (2 diffs)
-
trunk/trelis-crypto-payments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trelis-crypto-payments/tags/2.0.0/ReadMe.txt
r2896581 r2897687 5 5 Requires at least: 6.1 6 6 Tested up to: 6.2 7 Stable tag: 1.0.217 Stable tag: 2.0.0 8 8 Requires PHP: 7.4 9 9 License: GPL-3.0 … … 31 31 32 32 1. Install the Trelis Crypto Payments plugin 33 1. Navigate to WooCommerce -> Settings -> Payments -> TrelisPay -> Manage 33 1. For MemberPress, navigate to MemberPress -> Settings -> Payments 34 1. For WooCommerce, navigate to WooCommerce -> Settings -> Payments -> TrelisPay -> Manage 34 35 1. Navigate to [Trelis.com](Trelis.com) and connect your wallet. This wallet will receive payments. It is highly recommended to use a cold wallet. You are solely responsible for custody of your funds. To offer gasless USDC payments, purchase gas credits from your dashboard. 35 36 1. Navigate to the api screen to create a new api key. … … 69 70 == Changelog == 70 71 72 = 2.0.0 = 73 * Payment and Subscription support for Memberpress (BETA) 74 * Add Subscription support for Woo (BETA) 75 71 76 = 1.0.21 = 72 77 * Add support for Woo Subscriptions (beta) and Memberpress (beta) -
trelis-crypto-payments/tags/2.0.0/admin/MeprTrelisGateway.php
r2896563 r2897687 492 492 493 493 494 // debug mail495 496 $headers = array('Content-Type: text/html; charset=UTF-8');497 498 wp_mail('ronan@trelis.com', 'MEPR Process Payment webhook', print_r($json, true), $headers);499 500 // debug mail end494 // //debug mail 495 496 // $headers = array('Content-Type: text/html; charset=UTF-8'); 497 498 // wp_mail('ronan@trelis.com', 'MEPR Process Payment webhook', print_r($json, true), $headers); 499 500 // // debug mail end 501 501 502 502 -
trelis-crypto-payments/tags/2.0.0/admin/class-wc-trelis-gateway.php
r2896563 r2897687 495 495 $apiUrl = TRELIS_API_URL . 'run-subscription?apiKey=' . $this->apiKey . '&apiSecret=' . $this->apiSecret; 496 496 497 // Debug start498 $response = wp_remote_post($apiUrl, $args);499 $headers = array('Content-Type: text/html; charset=UTF-8');500 wp_mail('ronan@trelis.com', 'Trelis run subscription API', print_r($response, true), $headers);501 $this->custom_logs('run subscription api inside schedular', $response);502 // Debug End497 // //Debug start 498 // $response = wp_remote_post($apiUrl, $args); 499 // $headers = array('Content-Type: text/html; charset=UTF-8'); 500 // wp_mail('ronan@trelis.com', 'Trelis run subscription API', print_r($response, true), $headers); 501 // $this->custom_logs('run subscription api inside schedular', $response); 502 // //Debug End 503 503 504 504 if (!is_wp_error($response)) { … … 556 556 $response = wp_remote_post($apiUrl, $args); 557 557 558 // Debug Start559 $headers = array('Content-Type: text/html; charset=UTF-8');560 $emailBody = array($args, $response);561 wp_mail('ronan@trelis.com', 'Trelis cancel subscription API response', print_r($emailBody, true), $headers);562 $this->custom_logs('run subscription api response', $emailBody);563 // Debug End558 // //Debug Start 559 // $headers = array('Content-Type: text/html; charset=UTF-8'); 560 // $emailBody = array($args, $response); 561 // wp_mail('ronan@trelis.com', 'Trelis cancel subscription API response', print_r($emailBody, true), $headers); 562 // $this->custom_logs('run subscription api response', $emailBody); 563 // //Debug End 564 564 565 565 if (!is_wp_error($response)) { -
trelis-crypto-payments/tags/2.0.0/admin/class-wc-trelis-rest-api.php
r2896563 r2897687 88 88 $expected_signature = hash_hmac('sha256', $json, $trelis->get_option('webhook_secret')); 89 89 90 $headers = array('Content-Type: text/html; charset=UTF-8');91 wp_mail('ronan@trelis.com', 'Trelis payment webhook response', $json, $headers);92 $this->custom_logs_rest('payment webhook response', $json);90 // $headers = array('Content-Type: text/html; charset=UTF-8'); 91 // wp_mail('ronan@trelis.com', 'Trelis payment webhook response', $json, $headers); 92 // $this->custom_logs_rest('payment webhook response', $json); 93 93 94 94 if ($expected_signature != $_SERVER["HTTP_SIGNATURE"]) … … 273 273 $response = wp_remote_post($apiUrl, $args); 274 274 275 // Debugging code to send an email and write logs with the API response.276 $headers = array('Content-Type: text/html; charset=UTF-8');277 wp_mail('ronan@trelis.com', 'Trelis run subscription API', print_r($response, true), $headers);278 $this->custom_logs('run subscription api in webhook response', $response);275 // // Debugging code to send an email and write logs with the API response. 276 // $headers = array('Content-Type: text/html; charset=UTF-8'); 277 // wp_mail('ronan@trelis.com', 'Trelis run subscription API', print_r($response, true), $headers); 278 // $this->custom_logs('run subscription api in webhook response', $response); 279 279 280 280 /* Check if the API request was successful. -
trelis-crypto-payments/tags/2.0.0/trelis-crypto-payments.php
r2896563 r2897687 41 41 42 42 43 define('TRELIS_API_URL', 'https://api.trelis.com/dev- env/dev-api/');43 define('TRELIS_API_URL', 'https://api.trelis.com/dev-api/'); 44 44 45 45 define('TRELIS_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__))); -
trelis-crypto-payments/trunk/ReadMe.txt
r2896581 r2897687 5 5 Requires at least: 6.1 6 6 Tested up to: 6.2 7 Stable tag: 1.0.217 Stable tag: 2.0.0 8 8 Requires PHP: 7.4 9 9 License: GPL-3.0 … … 31 31 32 32 1. Install the Trelis Crypto Payments plugin 33 1. Navigate to WooCommerce -> Settings -> Payments -> TrelisPay -> Manage 33 1. For MemberPress, navigate to MemberPress -> Settings -> Payments 34 1. For WooCommerce, navigate to WooCommerce -> Settings -> Payments -> TrelisPay -> Manage 34 35 1. Navigate to [Trelis.com](Trelis.com) and connect your wallet. This wallet will receive payments. It is highly recommended to use a cold wallet. You are solely responsible for custody of your funds. To offer gasless USDC payments, purchase gas credits from your dashboard. 35 36 1. Navigate to the api screen to create a new api key. … … 69 70 == Changelog == 70 71 72 = 2.0.0 = 73 * Payment and Subscription support for Memberpress (BETA) 74 * Add Subscription support for Woo (BETA) 75 71 76 = 1.0.21 = 72 77 * Add support for Woo Subscriptions (beta) and Memberpress (beta) -
trelis-crypto-payments/trunk/admin/MeprTrelisGateway.php
r2896563 r2897687 492 492 493 493 494 // debug mail495 496 $headers = array('Content-Type: text/html; charset=UTF-8');497 498 wp_mail('ronan@trelis.com', 'MEPR Process Payment webhook', print_r($json, true), $headers);499 500 // debug mail end494 // //debug mail 495 496 // $headers = array('Content-Type: text/html; charset=UTF-8'); 497 498 // wp_mail('ronan@trelis.com', 'MEPR Process Payment webhook', print_r($json, true), $headers); 499 500 // // debug mail end 501 501 502 502 -
trelis-crypto-payments/trunk/admin/class-wc-trelis-gateway.php
r2896563 r2897687 495 495 $apiUrl = TRELIS_API_URL . 'run-subscription?apiKey=' . $this->apiKey . '&apiSecret=' . $this->apiSecret; 496 496 497 // Debug start498 $response = wp_remote_post($apiUrl, $args);499 $headers = array('Content-Type: text/html; charset=UTF-8');500 wp_mail('ronan@trelis.com', 'Trelis run subscription API', print_r($response, true), $headers);501 $this->custom_logs('run subscription api inside schedular', $response);502 // Debug End497 // //Debug start 498 // $response = wp_remote_post($apiUrl, $args); 499 // $headers = array('Content-Type: text/html; charset=UTF-8'); 500 // wp_mail('ronan@trelis.com', 'Trelis run subscription API', print_r($response, true), $headers); 501 // $this->custom_logs('run subscription api inside schedular', $response); 502 // //Debug End 503 503 504 504 if (!is_wp_error($response)) { … … 556 556 $response = wp_remote_post($apiUrl, $args); 557 557 558 // Debug Start559 $headers = array('Content-Type: text/html; charset=UTF-8');560 $emailBody = array($args, $response);561 wp_mail('ronan@trelis.com', 'Trelis cancel subscription API response', print_r($emailBody, true), $headers);562 $this->custom_logs('run subscription api response', $emailBody);563 // Debug End558 // //Debug Start 559 // $headers = array('Content-Type: text/html; charset=UTF-8'); 560 // $emailBody = array($args, $response); 561 // wp_mail('ronan@trelis.com', 'Trelis cancel subscription API response', print_r($emailBody, true), $headers); 562 // $this->custom_logs('run subscription api response', $emailBody); 563 // //Debug End 564 564 565 565 if (!is_wp_error($response)) { -
trelis-crypto-payments/trunk/admin/class-wc-trelis-rest-api.php
r2896563 r2897687 88 88 $expected_signature = hash_hmac('sha256', $json, $trelis->get_option('webhook_secret')); 89 89 90 $headers = array('Content-Type: text/html; charset=UTF-8');91 wp_mail('ronan@trelis.com', 'Trelis payment webhook response', $json, $headers);92 $this->custom_logs_rest('payment webhook response', $json);90 // $headers = array('Content-Type: text/html; charset=UTF-8'); 91 // wp_mail('ronan@trelis.com', 'Trelis payment webhook response', $json, $headers); 92 // $this->custom_logs_rest('payment webhook response', $json); 93 93 94 94 if ($expected_signature != $_SERVER["HTTP_SIGNATURE"]) … … 273 273 $response = wp_remote_post($apiUrl, $args); 274 274 275 // Debugging code to send an email and write logs with the API response.276 $headers = array('Content-Type: text/html; charset=UTF-8');277 wp_mail('ronan@trelis.com', 'Trelis run subscription API', print_r($response, true), $headers);278 $this->custom_logs('run subscription api in webhook response', $response);275 // // Debugging code to send an email and write logs with the API response. 276 // $headers = array('Content-Type: text/html; charset=UTF-8'); 277 // wp_mail('ronan@trelis.com', 'Trelis run subscription API', print_r($response, true), $headers); 278 // $this->custom_logs('run subscription api in webhook response', $response); 279 279 280 280 /* Check if the API request was successful. -
trelis-crypto-payments/trunk/trelis-crypto-payments.php
r2896563 r2897687 41 41 42 42 43 define('TRELIS_API_URL', 'https://api.trelis.com/dev- env/dev-api/');43 define('TRELIS_API_URL', 'https://api.trelis.com/dev-api/'); 44 44 45 45 define('TRELIS_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__)));
Note: See TracChangeset
for help on using the changeset viewer.