2017 © Pedro Peláez
 

library core

Core components for the WordPress payment processing library.

image

wp-pay/core

Core components for the WordPress payment processing library.

  • Thursday, August 2, 2018
  • by remcotolsma
  • Repository
  • 3 Watchers
  • 4 Stars
  • 14,664 Installations
  • PHP
  • 81 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 28 Versions
  • 3 % Grown

The README.md

WordPress Pay » Core , (*1)

<, (*2)

h1 align="center">WordPress Pay » Core, (*3)

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 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. , (*4)

Table of contents

Status

Latest Stable Version Total Downloads Latest Unstable Version License Built with Grunt, (*5)

CLI

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

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

\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

\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, (*6)

The Versions

09/05 2018

2.0.0

2.0.0.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL-3.0-or-later

The Requires

  • php ^5.3

 

The Development Requires

wordpress wp pay gateway core pronamic

12/12 2017

1.3.14

1.3.14.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php ^5.3

 

The Development Requires

wordpress wp pay gateway core pronamic

14/09 2017

1.3.13

1.3.13.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php ^5.3

 

The Development Requires

wordpress wp pay gateway core pronamic

15/03 2017

1.3.12

1.3.12.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php ^5.3

 

The Development Requires

wordpress wp pay gateway core pronamic

25/01 2017

1.3.11

1.3.11.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

16/11 2016

1.3.10

1.3.10.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

20/10 2016

1.3.9

1.3.9.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

06/07 2016

1.3.8

1.3.8.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

08/06 2016

1.3.7

1.3.7.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

29/04 2016

1.3.6

1.3.6.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

22/03 2016

1.3.5

1.3.5.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

02/03 2016

1.3.4

1.3.4.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

04/02 2016

1.3.3

1.3.3.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

02/02 2016

1.3.2

1.3.2.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

22/01 2016

1.3.1

1.3.1.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

07/01 2016

1.3.0

1.3.0.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

 

The Development Requires

wordpress wp pay gateway core pronamic

19/10 2015

1.2.3

1.2.3.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php >=5.2.4

 

wordpress wp pay gateway core pronamic

15/10 2015

1.2.2

1.2.2.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php >=5.2.4

 

wordpress wp pay gateway core pronamic

29/04 2015

1.2.1

1.2.1.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php >=5.2.4

 

wordpress wp pay gateway core pronamic

26/03 2015

1.2.0

1.2.0.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php >=5.2.4

 

wordpress wp pay gateway core pronamic

27/02 2015

1.1.0

1.1.0.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php >=5.2.4

 

wordpress wp pay gateway core pronamic

16/02 2015

1.0.1

1.0.1.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php >=5.2.4

 

wordpress wp pay gateway core pronamic

19/01 2015

1.0.0

1.0.0.0 https://www.wp-pay.org/

Core components for the WordPress payment processing library.

  Sources   Download

GPL

The Requires

  • php >=5.2.4

 

wordpress wp pay gateway core pronamic