diff --git a/QuickPay/api/Request.php b/QuickPay/api/Request.php index 90327d8..62e2181 100644 --- a/QuickPay/api/Request.php +++ b/QuickPay/api/Request.php @@ -157,7 +157,7 @@ protected function execute( $request_type, $form = array() ) // If additional data is delivered, we will send it along with the API request if( is_array( $form ) && ! empty( $form ) ) { - curl_setopt( $this->client->ch, CURLOPT_POSTFIELDS, $form ); + curl_setopt( $this->client->ch, CURLOPT_POSTFIELDS, http_build_query($form) ); } // Execute the request