| @@ -122,10 +122,10 @@ | ||
| 122 | 122 | */ |
| 123 | 123 | public function prepare_item_for_response( $item, $request ): WP_REST_Response { |
| 124 | 124 | $data = array( |
| 125 | 125 | 'id' => $item->id, |
| 126 | - 'title' => $item->get_title(), | |
| 127 | - 'description' => $item->get_description(), | |
| 126 | + 'title' => $this->gateway_contract->get_display_title( $item ), | |
| 127 | + 'description' => $this->gateway_contract->get_display_description( $item ), | |
| 128 | 128 | 'enabled' => $this->gateway_contract->is_pos_enabled( $item ), |
| 129 | 129 | 'provider' => $this->gateway_contract->get_provider( $item, $request ), |
| 130 | 130 | 'pos_type' => $this->gateway_contract->infer_pos_type( $item, $request ), |
| 131 | 131 | 'capabilities' => $this->gateway_contract->get_capabilities( $item, $request ), |