Linux 软件免费装
Banner图

CardV Gift Cards

开发者 cardvnetservice
更新时间 2026年10月20日 22:12
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce vouchers digital goods gift cards e-codes

下载

1.0.0 1.1.0

详情介绍:

CardV Gift Cards connects your WooCommerce store to your CardV merchant account. You pick the gift cards you want to sell, the plugin creates the products, and when a customer pays, the codes are bought from CardV and delivered on the order page and in the order e-mail. What it does What you need You are the seller of record to your customers. You set your prices, decide which orders are delivered automatically and handle your customers' support and refunds.

安装:

  1. Install and activate WooCommerce.
  2. Install this plugin from Plugins > Add New, or upload the zip, then activate it.
  3. Open CardV > Settings, choose Sandbox, paste your API key ID, signing secret and webhook secret, and save. The plugin tests the connection.
  4. Copy the webhook URL shown on the Settings page into your CardV Portal.
  5. Open CardV > Products, select the cards you want to sell and import them.
  6. Review your price and delivery rules, then switch to Live when you are ready.

屏幕截图:

  • Import products from the CardV catalog.
  • Choosing an amount on the product page.
  • Gift card codes on the order page.
  • Price and delivery rules.

升级注意事项:

1.1.0 Categories, brand logos, sorted amounts and a public data function for themes. Products you imported are updated automatically in the background. 1.0.0 First release.

常见问题:

Do I need a CardV account?

Yes. The plugin sells CardV products and pays for them from your CardV balance.

What happens if my CardV balance is too low?

Checkout for gift cards is paused until your balance covers the cart, so customers are not charged for cards you cannot deliver.

Which orders are delivered automatically?

Only orders paid with the payment methods you select, and that pass your delivery rules. Everything else waits on CardV > Orders for you to approve or reject.

Can I change product titles, descriptions and images?

Yes. The sync updates cost, price and availability only. It never overwrites your text, and never replaces images, brand logos or categories you set yourself.

How are products put into categories?

In CardV > Settings > Product sync choose "Use CardV categories" (default: each product goes into a store category named like its CardV category, created when missing) or "Use my own categories" (the plugin never changes categories; you pick one when importing). A product whose categories you changed is always left alone.

How can my theme or another plugin read gift card data?

Use cardv_gc_get_product_data( $product ). For a CardV gift card it returns an array with kind (fixed or range), brand (name, logo URL), region (code, name), category, face_currency, denominations (variation ID, face value, currency, text shown, price, availability; lowest first), range (min, max, step, lowest and highest price), redemption (HTML) and terms_html; for other products it returns null. cardv_gc_get_range_price( $product, $amount ) returns the price of a custom amount. The same data is in the WooCommerce Store API product response under extensions.cardv. These names stay compatible in future versions; new keys may be added. Cost and margin are never included.

Why can't customers buy, and how do I find out?

When a customer cannot buy a gift card (no API key, the Live mode agreement not accepted, or your CardV balance does not cover the cart), the customer sees "temporarily unavailable" and you see the exact reason at the top of your WordPress dashboard, WooCommerce and CardV screens.

Can my theme change how the codes look?

Yes. Copy any file from the plugin's templates folder to yourtheme/cardv-gift-cards/ and edit it.

Do I need to edit wp-config.php?

No. Paste your keys on the Settings page; they are stored encrypted. Advanced users can instead define CARDV_GC_LIVE_KEY_ID, CARDV_GC_LIVE_SIGNING_SECRET and CARDV_GC_LIVE_WEBHOOK_SECRET (and the same names with SANDBOX) in wp-config.php; values set there override the Settings page. By default secrets and codes are encrypted with your WordPress salts. To use a separate key, define CARDV_GC_ENCRYPTION_KEY (at least 32 characters) before saving keys, and list old keys in CARDV_GC_PREVIOUS_KEYS (comma separated) when you change it.

What is removed when I delete the plugin?

Settings, encrypted secrets, scheduled jobs and the activity log are removed. Your products and orders stay in WooCommerce. Delivered codes stay encrypted on the orders.

更新日志:

1.1.0 1.0.0