PHPackages                             wp-pay/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. wp-pay/core

ActiveWordpress-plugin[Payment Processing](/categories/payments)

wp-pay/core
===========

Core components for the WordPress payment processing library.

v4.32.0(1mo ago)29119.8k↓20.5%3[14 issues](https://github.com/pronamic/wp-pay-core/issues)20GPL-3.0-or-laterPHPPHP &gt;=8.2CI failing

Since Jan 19Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/pronamic/wp-pay-core)[ Packagist](https://packagist.org/packages/wp-pay/core)[ Docs](https://www.wp-pay.org/)[ RSS](/packages/wp-pay-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (54)Versions (132)Used By (20)

 [ ![WordPress Pay » Core](https://camo.githubusercontent.com/b825b47e9306076778ad9eeadfdf8b81433d15fe2e7890f0c101776734aed6f5/68747470733a2f2f7777772e77702d7061792e6f72672f6173736574732f70726f6e616d69632d7061792e7376676f2d6d696e2e737667) ](https://www.wp-pay.org/)

WordPress Pay » Core
====================

[](#wordpress-pay--core)

 The WordPress payment processing library is intended to make payments and integrations with payment providers easier to set up and maintain within WordPress. It has similarities to libraries like  and , but is more focused on WordPress. The code complies with the WordPress Coding Standards and the WordPress APIs are used.

Table of contents
-----------------

[](#table-of-contents)

- [Status](#status)
- [CLI](#cli)
- [WordPress Filters](#wordpress-filters)

Status
------

[](#status)

[![Latest Stable Version](https://camo.githubusercontent.com/451353ea60fe3b5cb900a02457487edfe820f3e067e0891c5a216da19d997d82/68747470733a2f2f706f7365722e707567782e6f72672f77702d7061792f636f72652f762f737461626c652e737667)](https://packagist.org/packages/wp-pay/core)[![Total Downloads](https://camo.githubusercontent.com/4b6e1b57985ff2883b2e1d337bc7a57f99bd90972ca9c58cc516621b1dee0475/68747470733a2f2f706f7365722e707567782e6f72672f77702d7061792f636f72652f646f776e6c6f6164732e737667)](https://packagist.org/packages/wp-pay/core)[![Latest Unstable Version](https://camo.githubusercontent.com/eb21015cf0b1dda94001de396b2b3f746913ff211839020e4437d842be1e05e3/68747470733a2f2f706f7365722e707567782e6f72672f77702d7061792f636f72652f762f756e737461626c652e737667)](https://packagist.org/packages/wp-pay/core)[![License](https://camo.githubusercontent.com/79724faa6ee3e73d1f7d85630efe246aa66cdfc0f6544ec51353df11b6b7eaf6/68747470733a2f2f706f7365722e707567782e6f72672f77702d7061792f636f72652f6c6963656e73652e737667)](https://packagist.org/packages/wp-pay/core)

CLI
---

[](#cli)

### Check pending payment status

[](#check-pending-payment-status)

```
wp pay payment status $( wp post list --field=ID --post_type=pronamic_payment --post_status=payment_pending --order=ASC --orderby=date --posts_per_page=100 --paged=1 )

```

WordPress Filters
-----------------

[](#wordpress-filters)

### pronamic\_payment\_gateway\_configuration\_id

[](#pronamic_payment_gateway_configuration_id)

```
\add_filter(
	'pronamic_payment_gateway_configuration_id',
	/**
	 * Filter the payment gateway configuration ID to use specific
	 * gateways for certain WooCommerce billing countries.
	 *
	 * @param int     $configuration_id Gateway configuration ID.
	 * @param Payment $payment          The payment resource data.
	 * @return int Gateway configuration ID.
	 */
	function( $configuration_id, $payment ) {
		if ( 'woocommerce' !== $payment->get_source() ) {
			return $configuration_id;
		}

		$billing_address = $payment->get_billing_address();

		if ( null === $billing_address ) {
			return $configuration_id;
		}

		$id = $configuration_id;

		switch ( $billing_address->get_country_code() ) {
			case 'US':
				$id = \get_option( 'custom_us_gateway_configuration_id', $id );
				break;
			case 'AU':
				$id = \get_option( 'custom_au_gateway_configuration_id', $id );
				break;
		}

		if ( 'pronamic_gateway' === \get_post_type( $id ) && 'publish' === \get_post_status( $id ) ) {
			$configuration_id = $id;
		}

		return $configuration_id;
	},
	10,
	2
);
```

### pronamic\_gateway\_configuration\_display\_value

[](#pronamic_gateway_configuration_display_value)

```
\add_filter(
	'pronamic_gateway_configuration_display_value',
	function( $display_value, $post_id ) {
		return \get_post_meta( $post_id, '_pronamic_gateway_display_value', true );
	},
	10,
	2
);
```

### pronamic\_gateway\_configuration\_display\_value\_$id

[](#pronamic_gateway_configuration_display_value_id)

```
\add_filter(
	'pronamic_gateway_configuration_display_value_payvision',
	function( $display_value, $post_id ) {
		return \get_post_meta( $post_id, '_pronamic_gateway_payvision_business_id', true );
	},
	10,
	2
);
```

[![Pronamic - Work with us](https://github.com/pronamic/brand-resources/raw/main/banners/pronamic-work-with-us-leaderboard-728x90%404x.png)](https://www.pronamic.eu/contact/)

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance78

Regular maintenance activity

Popularity40

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 62.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Total

126

Last Release

57d ago

Major Versions

1.3.14 → 2.0.02018-05-09

2.7.2 → 3.0.02021-08-05

3.2.0 → 4.0.0-alpha.12022-01-10

PHP version history (6 changes)1.0.0PHP &gt;=5.2.4

1.3.12PHP ^5.3

2.2.0PHP &gt;=5.6.20

4.0.2PHP &gt;=7.4

v4.6.0PHP &gt;=8.0

v4.27.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/869674?v=4)[Remco Tolsma](/maintainers/remcotolsma)[@remcotolsma](https://github.com/remcotolsma)

![](https://avatars.githubusercontent.com/u/10371164?v=4)[Reüel van der Steege](/maintainers/rvdsteege)[@rvdsteege](https://github.com/rvdsteege)

---

Top Contributors

[![remcotolsma](https://avatars.githubusercontent.com/u/869674?v=4)](https://github.com/remcotolsma "remcotolsma (2224 commits)")[![rvdsteege](https://avatars.githubusercontent.com/u/10371164?v=4)](https://github.com/rvdsteege "rvdsteege (1330 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (12 commits)")[![knit-pay](https://avatars.githubusercontent.com/u/65900807?v=4)](https://github.com/knit-pay "knit-pay (8 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

gatewaypaymentpayment-gatewaypayment-integrationpaymentsphpphp8pspwoocommercewordpresswordpresscoregatewaywppaypronamic

###  Code Quality

Static AnalysisPHPStan, Psalm, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/wp-pay-core/health.svg)

```
[![Health](https://phpackages.com/badges/wp-pay-core/health.svg)](https://phpackages.com/packages/wp-pay-core)
```

###  Alternatives

[wp-pay-extensions/gravityforms

Gravity Forms driver for the WordPress payment processing library.

1133.3k2](/packages/wp-pay-extensions-gravityforms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
