We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69abb7c commit af4f41fCopy full SHA for af4f41f
1 file changed
src/RobokassaApi.php
@@ -149,7 +149,7 @@ public function getPaymentParameters(InvoiceOptions $invoiceOptions): array
149
'MerchantLogin' => $this->merchantLogin,
150
'OutSum' => $invoiceOptions->outSum,
151
'Description' => $invoiceOptions->description,
152
- 'PreviousInvoiceID' => $invoiceOptions->previousInvoiceId ?? null,
+ 'PreviousInvoiceID' => isset($invoiceOptions->previousInvoiceId) ? (string)$invoiceOptions->previousInvoiceId : null,
153
'SignatureValue' => $invoiceOptions->signatureValue ?? $this->generateSignatureForPayment($invoiceOptions),
154
'IncCurrLabel' => $invoiceOptions->incCurrLabel,
155
'InvId' => isset($invoiceOptions->invId) ? (string)$invoiceOptions->invId : null,
0 commit comments