Skip to content

Commit

Permalink
configured wp.org
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Apr 27, 2024
1 parent b9a24cc commit f4d71c7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ private function isBlockEditor(): bool
$isElementor = false;
$isDivi = false;

// Nonce process in WPForms side
$etFb = isset($_GET['et_fb']) ? sanitize_text_field($_GET['et_fb']) : '';
$getAction = isset($_GET['action']) ? sanitize_text_field($_GET['action']) : '';
$postAction = isset($_POST['action']) ? sanitize_text_field($_POST['action']) : '';
Expand Down
1 change: 1 addition & 0 deletions app/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function __construct()
}
return Helpers::run('view', 'components/link', [
'url' => sprintf(admin_url('admin.php?page=wpforms-payments&view=payment&payment_id=%d'), $tx->orderId), // @phpcs:ignore
/* translators: %d: transaction order id */
'text' => sprintf(esc_html__('View payment #%d', 'wpforms-cryptopay'), $tx->orderId)
]);
}
Expand Down
2 changes: 2 additions & 0 deletions app/Payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function __construct(string $name, string $slug)
*/
private function getFormData(): array
{
// Nonce process in WPForms side
$formId = isset($_GET['form_id']) ? absint($_GET['form_id']) : 0;

if (!$formId) {
Expand Down Expand Up @@ -134,6 +135,7 @@ public function builderContent(): void
'enable',
$this->form_data,
sprintf(
/* translators: %s - payment gateway name */
esc_html__('Enable %s', 'wpforms-lite'),
$this->name
),
Expand Down
1 change: 1 addition & 0 deletions app/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private function createFieldsWithValue(int $formId, array $entry): array
public function paymentCheckProcess(array $errors, array $formData): array
{
if ($this->hashCryptoPayField($formData)) {
// Nonce process in WPForms side
$transactionHash = isset($_POST['wpforms']['transaction-hash'])
? sanitize_text_field($_POST['wpforms']['transaction-hash'])
: '';
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Version: 1.0.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Cryptocurrency Payment Gateway Plugin for WPForms, Cryptocurrency payments for WordPress, Bitcoin payments, Crypto payments, USDT, BTC, ETH, SOL
Cryptocurrency Payment Gateway for WPForms, Cryptocurrency payments for WordPress, Bitcoin payments, Ethereum, Crypto payments, USDT, BTC, ETH, SOL

== Description ==

### Cryptocurrency Payment Gateway Plugin for WPForms by CryptoPay
### Cryptocurrency Payment Gateway for WPForms by CryptoPay

First of all, we would like to point out that this plugin is not a standalone plugin. This plugin is a **<a href="https://beycanpress.com/cryptopay/?utm_source=wporg_readme&utm_medium=cryptopay_wpforms">cryptocurrency payment gateway for WPForms</a>**. In other words, users who want to sell courses with cryptocurrency payments can use WordPress and WPForms. However, this plugin is a plugin for CryptoPay and a cryptocurrency payment gateway for WPForms. So it's actually CryptoPay, which is the main plugin that handles cryptocurrency payments for WordPress. Therefore, users must have both plugins.

Expand Down

0 comments on commit f4d71c7

Please sign in to comment.