| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function get_config( $post_id ) { |
||
| 30 | $config = new Config(); |
||
| 31 | |||
| 32 | $config->post_id = $post_id; |
||
|
|
|||
| 33 | $config->mode = get_post_meta( $post_id, '_pronamic_gateway_mode', true ); |
||
| 34 | $config->refresh_token = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_2_refresh_token', true ); |
||
| 35 | $config->signing_key = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_2_signing_key', true ); |
||
| 36 | $config->access_token = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_2_access_token', true ); |
||
| 37 | $config->access_token_valid_until = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_2_access_token_valid_until', true ); |
||
| 38 | $config->order_id = get_post_meta( $post_id, '_pronamic_gateway_omnikassa_2_order_id', true ); |
||
| 39 | |||
| 40 | return $config; |
||
| 41 | } |
||
| 43 |