Title: Pay with Code
Author: dynahsty
Published: <strong>2024 年 8 月 12 日</strong>
Last modified: 2024 年 8 月 12 日

---

搜索插件

![](https://ps.w.org/pay-with-code/assets/banner-772x250.png?rev=3134138)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/pay-with-code/assets/icon-128x128.png?rev=3134138)

# Pay with Code

 作者：[dynahsty](https://profiles.wordpress.org/dynahsty/)

[下载](https://downloads.wordpress.org/plugin/pay-with-code.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/pay-with-code/#description)
 * [评价](https://cn.wordpress.org/plugins/pay-with-code/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/pay-with-code/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/pay-with-code/#developers)

 [支持](https://wordpress.org/support/plugin/pay-with-code/)

## 描述

“Pay with Code” is a specialized WooCommerce plugin designed to offer an alternative
payment method through the use of unique, pre-generated codes. This method is ideal
for scenarios where direct monetary transactions are not possible or preferred. 
The plugin works by allowing store administrators to generate and distribute purchase
codes that customers can use at checkout. These codes can be set to expire, be used
once, or deactivated as needed, providing a flexible and secure payment solution.
The plugin also includes features for managing codes, viewing logs, and handling
code-related events, such as deactivation and usage tracking.

### Please Note

Make sure to use the inbuit the wp_mail function, as email notification are sent
using the method. You can alway use SMTP plugins such as WP Mail SMTP by WPForms
for better configuration.

**Features of Pay with Code**

 1. Code Generation: Admins can generate unique codes with optional expiration dates.
 2. Secure Payment Option: Customers can use codes to pay for their purchases at checkout.
 3. Admin Management: Tools for admins to deactivate, clear, and track codes.
 4. User Feedback: Interactive feedback for users during the checkout process based
    on code validity.
 5. Email Notifications: Automated emails to customers and admins when codes are used.
 6. Customizable Settings: Admins can configure payment gateway settings such as enabling/
    disabling the gateway, title, and description adjustments.
 7. Security Checks: Implements robusts verification for security during code generation
    and payment processing.
 8. Logs and Reporting: An interface for viewing and exporting usage logs and the status
    of generated codes.

### Contributors

Pay with Code is an open-source project and welcomes all contributors from code 
to design, and implement new features. For more info [Contributor’s Handbook](https://developer.wordpress.org/block-editor/contributors/)
for all the details on how you can help.

## 屏幕截图

[⌊https://freeimage.host/i/d0r30DG⌉⌊https://freeimage.host/i/d0r30DG⌉[

https://freeimage.host/i/d0r30DG

[⌊https://freeimage.host/i/d0r3Wf2⌉⌊https://freeimage.host/i/d0r3Wf2⌉[

https://freeimage.host/i/d0r3Wf2

[⌊https://freeimage.host/i/d0r3r0B⌉⌊https://freeimage.host/i/d0r3r0B⌉[

https://freeimage.host/i/d0r3r0B

[⌊https://freeimage.host/i/d0r3tWv⌉⌊https://freeimage.host/i/d0r3tWv⌉[

https://freeimage.host/i/d0r3tWv

[⌊https://freeimage.host/i/d0rF2bs⌉⌊https://freeimage.host/i/d0rF2bs⌉[

https://freeimage.host/i/d0rF2bs

## 安装

 1. Upload Plugin: Download the “Pay with Code” plugin and upload it to your WordPress
    site via the WordPress admin panel.
 2. Activate Plugin: Navigate to the ‘Plugins’ section in your WordPress admin area,
    find the “Pay with Code” plugin, and click ‘Activate’.
 3. Configure Settings: Go to the WooCommerce settings page, select ‘Payments’ and 
    configure the “Pay with Code” gateway settings.
 4. Generate Codes: Use the admin panel provided by the plugin to generate and manage
    purchase codes.
 5. Use Codes: Inform your customers how they can purchase and use these codes during
    checkout.

## 常见问题

How do I generate codes?

Admins can generate codes through the ‘Generate Codes’ submenu in the plugin’s settings.
Codes can have set expiration dates and are managed from the admin panel.

What happens if a code is used or expired?

The plugin provides feedback at checkout if a code has been used, is expired, or
is deactivated, preventing the transaction until a valid code is entered.

Is the plugin secure?

Yes, the plugin uses WordPress robust verification to prevent unauthorized access
and ensure data integrity.

Is there a limit to the number of codes I can generate?

There is no inherent limit imposed by the plugin on the number of codes you can 
generate. However, practical limits may depend on your server’s performance and 
database capabilities. Admins can generate codes as needed, based on the operational
scope and capacity of their WooCommerce setup.

Can I set an expiration date for generated codes?

Yes, when generating codes via the admin panel, you can specify an expiration date
for each code. This ensures that codes are only valid within a predetermined time
frame, enhancing security and managing promotions or special offers effectively.

What happens to the stock levels when a purchase code is used?

Upon successful verification and use of a purchase code, the plugin automatically
reduces the stock levels of the purchased items. This integration ensures that inventory
levels are accurately maintained within the WooCommerce system, preventing overselling
and managing supplies efficiently.

Where can I get support?

You can contact Dynasty via the provided link in the plugin’s description or through
the support forum on the WordPress plugin repository page. Want direct contact, 
hit me up at holakhunle@gmail.com

## 评价

此插件暂无评价。

## 贡献者及开发者

「Pay with Code」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ dynahsty ](https://profiles.wordpress.org/dynahsty/)

[帮助将「Pay with Code」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pay-with-code)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/pay-with-code/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/pay-with-code/)，或通过[RSS](https://plugins.trac.wordpress.org/log/pay-with-code/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/pay-with-code/)。

## 更新日志

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**2 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/pay-with-code/)
 * 标签
 * [extension](https://cn.wordpress.org/plugins/tags/extension/)[gateway](https://cn.wordpress.org/plugins/tags/gateway/)
   [payment](https://cn.wordpress.org/plugins/tags/payment/)[secure checkout](https://cn.wordpress.org/plugins/tags/secure-checkout/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/pay-with-code/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/pay-with-code/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/pay-with-code/reviews/)

## 贡献者

 *   [ dynahsty ](https://profiles.wordpress.org/dynahsty/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/pay-with-code/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://flutterwave.com/donate/pylumi0ufo1d)