diff --git a/src/Gateway.php b/src/Gateway.php index 040d41c..5aa00f1 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -256,7 +256,7 @@ public function start( Payment $payment ) { $merchant_order_id = $payment->format_string( $this->config->order_id ); if ( '' === $merchant_order_id ) { - $merchant_order_id = $payment->get_id(); + $merchant_order_id = (string) $payment->get_id(); } $payment->set_meta( 'omnikassa_2_merchant_order_id', $merchant_order_id );