{"id":15296473,"url":"https://github.com/pronamic/wp-pay-core","last_synced_at":"2026-01-30T11:48:18.684Z","repository":{"id":18120204,"uuid":"21197123","full_name":"pronamic/wp-pay-core","owner":"pronamic","description":"Core components for the WordPress payment processing library. This library is used in the WordPress plugin Pronamic Pay: https://www.pronamicpay.com/, but also allows other plugin developers to set up a payment plugin.","archived":false,"fork":false,"pushed_at":"2025-07-03T14:42:32.000Z","size":15230,"stargazers_count":26,"open_issues_count":12,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-09T00:35:22.301Z","etag":null,"topics":["gateway","payment","payment-gateway","payment-integration","payments","php","php8","psp","woocommerce","wordpress"],"latest_commit_sha":null,"homepage":"https://www.wp-pay.org/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pronamic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-06-25T09:16:30.000Z","updated_at":"2025-07-03T14:42:35.000Z","dependencies_parsed_at":"2023-10-16T18:38:19.869Z","dependency_job_id":"3f3939c3-d324-407a-b704-2d0128565a89","html_url":"https://github.com/pronamic/wp-pay-core","commit_stats":{"total_commits":3081,"total_committers":5,"mean_commits":616.2,"dds":"0.38331710483609216","last_synced_commit":"59c597688a371fcc625f48ecb47ecb9d340e9605"},"previous_names":["wp-pay/core"],"tags_count":197,"template":false,"template_full_name":null,"purl":"pkg:github/pronamic/wp-pay-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pronamic%2Fwp-pay-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pronamic%2Fwp-pay-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pronamic%2Fwp-pay-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pronamic%2Fwp-pay-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pronamic","download_url":"https://codeload.github.com/pronamic/wp-pay-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pronamic%2Fwp-pay-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270653606,"owners_count":24622795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gateway","payment","payment-gateway","payment-integration","payments","php","php8","psp","woocommerce","wordpress"],"created_at":"2024-09-30T18:10:40.103Z","updated_at":"2026-01-30T11:48:18.676Z","avatar_url":"https://github.com/pronamic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://www.wp-pay.org/\"\u003e\n\t\t\u003cimg src=\"https://www.wp-pay.org/assets/pronamic-pay.svgo-min.svg\" alt=\"WordPress Pay » Core\" width=\"72\" height=\"72\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eWordPress Pay » Core\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n\tThe 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 https://github.com/Payum/Payum and https://github.com/thephpleague/omnipay, but is more focused on WordPress. The code complies with the WordPress Coding Standards and the WordPress APIs are used.\n\u003c/p\u003e\n\n## Table of contents\n\n- [Status](#status)\n- [CLI](#cli)\n- [WordPress Filters](#wordpress-filters)\n\n## Status\n\n[![Latest Stable Version](https://poser.pugx.org/wp-pay/core/v/stable.svg)](https://packagist.org/packages/wp-pay/core)\n[![Total Downloads](https://poser.pugx.org/wp-pay/core/downloads.svg)](https://packagist.org/packages/wp-pay/core)\n[![Latest Unstable Version](https://poser.pugx.org/wp-pay/core/v/unstable.svg)](https://packagist.org/packages/wp-pay/core)\n[![License](https://poser.pugx.org/wp-pay/core/license.svg)](https://packagist.org/packages/wp-pay/core)\n[![Built with Grunt](http://cdn.gruntjs.com/builtwith.svg)](http://gruntjs.com/)\n\n## CLI\n\n### Check pending payment status\n\n```\nwp 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 )\n```\n\n## WordPress Filters\n\n### pronamic_payment_gateway_configuration_id\n\n```php\n\\add_filter(\n\t'pronamic_payment_gateway_configuration_id',\n\t/**\n\t * Filter the payment gateway configuration ID to use specific \n\t * gateways for certain WooCommerce billing countries.\n\t *\n\t * @param int     $configuration_id Gateway configuration ID.\n\t * @param Payment $payment          The payment resource data.\n\t * @return int Gateway configuration ID.\n\t */\n\tfunction( $configuration_id, $payment ) {\n\t\tif ( 'woocommerce' !== $payment-\u003eget_source() ) {\n\t\t\treturn $configuration_id;\n\t\t}\n\n\t\t$billing_address = $payment-\u003eget_billing_address();\n\n\t\tif ( null === $billing_address ) {\n\t\t\treturn $configuration_id;\n\t\t}\n\n\t\t$id = $configuration_id;\n\n\t\tswitch ( $billing_address-\u003eget_country_code() ) {\n\t\t\tcase 'US':\n\t\t\t\t$id = \\get_option( 'custom_us_gateway_configuration_id', $id );\n\t\t\t\tbreak;\n\t\t\tcase 'AU':\n\t\t\t\t$id = \\get_option( 'custom_au_gateway_configuration_id', $id );\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif ( 'pronamic_gateway' === \\get_post_type( $id ) \u0026\u0026 'publish' === \\get_post_status( $id ) ) {\n\t\t\t$configuration_id = $id;\n\t\t}\n\n\t\treturn $configuration_id;\n\t},\n\t10,\n\t2\n);\n```\n\n### pronamic_gateway_configuration_display_value\n\n```php\n\\add_filter(\n\t'pronamic_gateway_configuration_display_value',\n\tfunction( $display_value, $post_id ) {\n\t\treturn \\get_post_meta( $post_id, '_pronamic_gateway_display_value', true );\n\t},\n\t10,\n\t2\n);\n```\n\n### pronamic_gateway_configuration_display_value_$id\n\n```php\n\\add_filter(\n\t'pronamic_gateway_configuration_display_value_payvision',\n\tfunction( $display_value, $post_id ) {\n\t\treturn \\get_post_meta( $post_id, '_pronamic_gateway_payvision_business_id', true );\n\t},\n\t10,\n\t2\n);\n```\n\n[![Pronamic - Work with us](https://github.com/pronamic/brand-resources/blob/main/banners/pronamic-work-with-us-leaderboard-728x90%404x.png)](https://www.pronamic.eu/contact/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpronamic%2Fwp-pay-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpronamic%2Fwp-pay-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpronamic%2Fwp-pay-core/lists"}