mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-27 01:22:18 +08:00
26 lines
657 B
PHP
26 lines
657 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\Tests\Integration\Fixtures;
|
|
|
|
class DiscountPresets
|
|
{
|
|
public static function get(): array
|
|
{
|
|
return [
|
|
'percentage_10' => [
|
|
'coupon_code' => 'TEST10PERCENT',
|
|
'type' => 'percent',
|
|
'amount' => '10'
|
|
],
|
|
'fixed_5' => [
|
|
'coupon_code' => 'TEST5FIXED',
|
|
'type' => 'fixed_cart',
|
|
'amount' => '5.00'
|
|
],
|
|
'manual_discount' => [
|
|
'fee' => ['name' => 'Test Discount', 'amount' => 3.50]
|
|
],
|
|
];
|
|
}
|
|
}
|