We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19313de commit 559411dCopy full SHA for 559411d
src/Message/PurchaseRequest.php
@@ -57,8 +57,10 @@ public function getData()
57
$data['metaData'] = $this->getMetadata();
58
}
59
60
- if ( $this->getMerchantReference() ) {
61
- $data['merchantReference'] = $this->getMerchantReference();
+ $merchantReference = $this->getMerchantReference() ?? $this->getDescription();
+
62
+ if ( $merchantReference ) {
63
+ $data['merchantReference'] = $merchantReference;
64
65
66
if ( $this->getReturnUrl() ) {
0 commit comments