Skip to content

Commit

Permalink
Merge pull request #228 from woocommerce/upkeep/222
Browse files Browse the repository at this point in the history
upkeep/222: modernize developer experience
  • Loading branch information
dkotter authored Jul 26, 2024
2 parents c3ff046 + 2efdef3 commit 3a17821
Show file tree
Hide file tree
Showing 11 changed files with 8,941 additions and 27,001 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
key: node-${{ hashFiles('package-lock.json') }}

- name: Node install
run: npm install
run: npm ci

- name: Build
run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v20
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ The Payfast extension for WooCommerce enables you to accept payments including S

This is the official WooCommerce extension to receive payments using the South African Payfast payments provider.

## Requirements

- Minimum node version 20.x.
- Minimum NPM version 10.

## Dependencies

- Requires at least: 6.4
Expand Down
4 changes: 2 additions & 2 deletions includes/class-wc-gateway-payfast-blocks-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function is_active() {
* @return array
*/
public function get_payment_method_script_handles() {
$asset_path = WC_GATEWAY_PAYFAST_PATH . '/build/index.asset.php';
$asset_path = WC_GATEWAY_PAYFAST_PATH . '/build/payment-method.asset.php';
$version = WC_GATEWAY_PAYFAST_VERSION;
$dependencies = array();
if ( file_exists( $asset_path ) ) {
Expand All @@ -59,7 +59,7 @@ public function get_payment_method_script_handles() {
}
wp_register_script(
'wc-payfast-blocks-integration',
WC_GATEWAY_PAYFAST_URL . '/build/index.js',
WC_GATEWAY_PAYFAST_URL . '/build/payment-method.js',
$dependencies,
$version,
true
Expand Down
Loading

0 comments on commit 3a17821

Please sign in to comment.