woocommerce-paypal-payments/tests/qa/resources/orders.ts
2025-04-16 11:24:24 +02:00

19 lines
466 B
TypeScript

/**
* External dependencies
*/
import { orders } from '@inpsyde/playwright-utils/build/e2e/plugins/woocommerce';
/**
* Internal dependencies
*/
import { merchants } from '.';
const country = process.env.WC_DEFAULT_COUNTRY || 'usa';
const currency = process.env.WC_DEFAULT_CURRENCY || 'USD';
const merchant = merchants[ country ];
for ( const order in orders ) {
orders[ order ].merchant = merchant;
orders[ order ].currency = currency;
}
export { orders };