Skip to content

Commit

Permalink
Update Behpardakht.php
Browse files Browse the repository at this point in the history
add payment data to receipt
  • Loading branch information
hsharghi authored Aug 1, 2021
1 parent 3d89f66 commit 84380d3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Drivers/Behpardakht/Behpardakht.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,15 @@ public function verify(): ReceiptInterface
throw new InvalidPaymentException($this->translateStatus($settleResponse), $settleResponse);
}

return $this->createReceipt($data['saleReferenceId']);
$receipt = $this->createReceipt($data['saleReferenceId']);
$receipt->detail([
'traceNo' => Request::input('SaleOrderId'),
'referenceNo' => Request::input('SaleReferenceId'),
'transactionId' => Request::input('RefId'),
'cardNo' => Request::input('CardHolderPan'),
]);

return $receipt;
}

/**
Expand Down

0 comments on commit 84380d3

Please sign in to comment.