From 8770cec4d617afaccca7b427cca9f623267fcb45 Mon Sep 17 00:00:00 2001 From: Kirill Braslavsky Date: Tue, 2 Mar 2021 13:25:29 +0200 Subject: [PATCH] rename function --- .../ppcp-button/src/Endpoint/class-createorderendpoint.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php b/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php index 5941cf435..8a59bdb57 100644 --- a/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php +++ b/modules/ppcp-button/src/Endpoint/class-createorderendpoint.php @@ -173,7 +173,7 @@ class CreateOrderEndpoint implements EndpointInterface { $shipping_address_is_fix ); if ( 'checkout' === $data['context'] ) { - $this->validate_checkout_form( $data['form'], $order ); + $this->process_checkout_form( $data['form'], $order ); } if ( 'pay-now' === $data['context'] && get_option( 'woocommerce_terms_page_id', '' ) !== '' ) { $this->validate_paynow_form( $data['form'] ); @@ -263,7 +263,7 @@ class CreateOrderEndpoint implements EndpointInterface { * * @throws \Exception On Error. */ - private function validate_checkout_form( string $form_values, Order $order ) { + private function process_checkout_form( string $form_values, Order $order ) { $this->order = $order; $form_values = explode( '&', $form_values );