wp-pay-gateways /
ems-e-commerce
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\EMS\ECommerce; |
||
| 4 | |||
| 5 | use Pronamic\WordPress\Pay\Core\GatewayConfigFactory; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Title: EMS e-Commerce config factory |
||
| 9 | * Description: |
||
| 10 | * Copyright: 2005-2019 Pronamic |
||
| 11 | * Company: Pronamic |
||
| 12 | * |
||
| 13 | * @author Reüel van der Steege |
||
| 14 | * @version 2.0.1 |
||
| 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->storename = get_post_meta( $post_id, '_pronamic_gateway_ems_ecommerce_storename', true ); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 22 | $config->secret = get_post_meta( $post_id, '_pronamic_gateway_ems_ecommerce_secret', true ); |
||
| 23 | $config->mode = get_post_meta( $post_id, '_pronamic_gateway_mode', true ); |
||
| 24 | $config->order_id = get_post_meta( $post_id, '_pronamic_gateway_ems_ecommerce_order_id', true ); |
||
| 25 | |||
| 26 | return $config; |
||
| 27 | } |
||
| 28 | } |
||
| 29 |