wp-pay-extensions / easy-digital-downloads
WordPress支付处理库的Easy Digital Downloads驱动程序。
v4.3.5
2024-03-26 11:21 UTC
Requires
- php: >=8.0
- wp-pay/core: ^4.16
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.8
- php-coveralls/php-coveralls: ^2.7
- phpmd/phpmd: ^2.15
- pronamic/pronamic-cli: ^1.1
- pronamic/wp-coding-standards: ^2.2
- roots/wordpress: ^6.4
- wp-phpunit/wp-phpunit: ^6.4
- wpackagist-plugin/easy-digital-downloads: ^3.2
- wpackagist-plugin/wordpress-seo: ^22.3
- yoast/phpunit-polyfills: ^2.0
This package is auto-updated.
Last update: 2024-09-13 08:43:57 UTC
README
WordPress支付处理库的Easy Digital Downloads驱动程序。
测试Easy Digital Downloads费用
据我们所知,没有免费的/开源的Easy Digital Downloads费用插件。以下必须使用的WordPress插件可以测试Easy Digital Downloads费用系统。
wp-content/mu-plugins/edd-test-fee.php
<?php add_action( 'init', function() { if ( ! function_exists( 'EDD' ) ) { return; } EDD()->fees->add_fee( 10, 'Test Backwards Compatibility', 'test-compat' ); EDD()->fees->add_fee( array( 'amount' => 20, 'label' => 'Test', 'id' => 'test', 'no_tax' => false, 'type' => 'item', ) ); EDD()->fees->add_fee( array( 'amount' => -5.95, 'label' => 'Discount', 'id' => 'discount', 'type' => 'fee', ) ); EDD()->fees->add_fee( array( 'amount' => 30.75, 'label' => 'Arbitrary Item', 'download_id' => 8, 'id' => 'arbitrary_fee', 'type' => 'item', ) ); } );
- https://github.com/easydigitaldownloads/easy-digital-downloads/blob/2.9.11/tests/tests-cart.php#L506-L528
- https://github.com/easydigitaldownloads/easy-digital-downloads/blob/2.9.11/includes/class-edd-fees.php