mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add filter to allow modifying of request order creation data
This commit is contained in:
parent
c5fe98e766
commit
f0e367cdd3
1 changed files with 5 additions and 0 deletions
|
@ -235,6 +235,11 @@ class OrderEndpoint {
|
|||
if ( $payment_method ) {
|
||||
$data['payment_method'] = $payment_method->to_array();
|
||||
}
|
||||
|
||||
/**
|
||||
* The filter can be used to modify the request data.
|
||||
*/
|
||||
$data = apply_filters( 'ppcp_create_order_request_body_data', $data );
|
||||
$url = trailingslashit( $this->host ) . 'v2/checkout/orders';
|
||||
$args = array(
|
||||
'method' => 'POST',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue