 wp-pay-gateways    /
                    buckaroo
                      wp-pay-gateways    /
                    buckaroo
                
                            | 1 | <?php | ||
| 2 | |||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\Buckaroo; | ||
| 4 | |||
| 5 | use Pronamic\WordPress\Pay\Core\GatewayConfigFactory; | ||
| 6 | |||
| 7 | /** | ||
| 8 | * Title: Buckaroo config factory | ||
| 9 | * Description: | ||
| 10 | * Copyright: 2005-2019 Pronamic | ||
| 11 | * Company: Pronamic | ||
| 12 | * | ||
| 13 | * @author Remco Tolsma | ||
| 14 | * @version 2.0.0 | ||
| 15 | * @since 1.0.0 | ||
| 16 | */ | ||
| 17 | class ConfigFactory extends GatewayConfigFactory { | ||
| 18 | 	public function get_config( $post_id ) { | ||
| 19 | $config = new Config(); | ||
| 20 | |||
| 21 | $config->website_key = get_post_meta( $post_id, '_pronamic_gateway_buckaroo_website_key', true ); | ||
| 0 ignored issues–
                            show             Bug
    
    
    
        introduced 
                            by  
  Loading history... | |||
| 22 | $config->secret_key = get_post_meta( $post_id, '_pronamic_gateway_buckaroo_secret_key', true ); | ||
| 23 | $config->excluded_services = get_post_meta( $post_id, '_pronamic_gateway_buckaroo_excluded_services', true ); | ||
| 24 | $config->invoice_number = get_post_meta( $post_id, '_pronamic_gateway_buckaroo_invoice_number', true ); | ||
| 25 | $config->mode = get_post_meta( $post_id, '_pronamic_gateway_mode', true ); | ||
| 26 | |||
| 27 | return $config; | ||
| 28 | } | ||
| 29 | } | ||
| 30 | 
