Order_Repository::filter_postarr_for_create( $postarr )
{@inheritdoc}
Source
File: src/Tickets/Commerce/Repositories/Order_Repository.php
public function filter_postarr_for_create( array $postarr ) { if ( isset( $postarr['meta_input'] ) ) { $postarr = $this->filter_meta_input( $postarr ); } if ( ! empty( $postarr['gateway_payload'] ) ) { $payload = $postarr['gateway_payload']; unset( $postarr['gateway_payload'] ); $status = tribe( Commerce\Status\Status_Handler::class )->get_by_wp_slug( $this->create_args['post_status'] ); if ( $status ) { $postarr['meta_input'][ Order::get_gateway_payload_meta_key( $status ) ] = $payload; } } return parent::filter_postarr_for_create( $postarr ); }