Skip to content

Commit

Permalink
Fix error "Field Order.merchantOrderId cannot contain HTML tags: `1…
Browse files Browse the repository at this point in the history
…23`" (regression by 6fe8f00).
  • Loading branch information
rvdsteege committed Jul 5, 2023
1 parent 6fe8f00 commit ff70fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit ff70fd9

Please sign in to comment.