After approving the payment redirects on a blank page

I have a shop made with woocommerce. The problem arises when the payment is approved by the payment gateway, redirects me to a blank page, which shows no error.

Attached is the error line that generates the error log.

payment_method was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, call_user_func, PlacetoPay\PaymentMethod\GatewayMethod->endpointPlacetoPay, PlacetoPay\PaymentMethod\GatewayMethod->returnProcess, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_processing'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, actualiza_estado_pedidos_a_completado, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0