Skip to content

Commit 6cd994a

Browse files
committed
[fix] Add merchant_ref for any non null or empty state
1 parent d7357ea commit 6cd994a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BuilderAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function build($state = null)
4747
);
4848
$order = $this->fixTotals($order);
4949
$reference = $this->orderMerchantReference();
50-
if ('confirmed' == $state && count($reference) > 0) {
50+
if ($state && count($reference) > 0) {
5151
$order['merchant_reference'] = $reference;
5252
}
5353

0 commit comments

Comments
 (0)