From 1ce884d95bdd6bf6910c688590080f0eda6fa248 Mon Sep 17 00:00:00 2001 From: John Olawale Date: Sat, 23 May 2020 08:28:19 +0100 Subject: [PATCH] Allow users to pass transRef for bulk payments --- src/Models/BulkBeneficiary.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Models/BulkBeneficiary.php b/src/Models/BulkBeneficiary.php index 433616b..3196cc8 100644 --- a/src/Models/BulkBeneficiary.php +++ b/src/Models/BulkBeneficiary.php @@ -16,6 +16,8 @@ class BulkBeneficiary { public $narration; + public $transRef; + protected $iv; protected $key; @@ -45,7 +47,7 @@ public function encryptedNarration() { } public function encryptedTransRef() { - return Encryptor::encrypt(rand(), $this->iv, $this->key); + return Encryptor::encrypt($this->transRef, $this->iv, $this->key); }