Skip to content

Commit ad38030

Browse files
committed
Txn ref bug fixes
1 parent 968503b commit ad38030

File tree

4 files changed

+3
-0
lines changed

4 files changed

+3
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

controllers/.DS_Store

0 Bytes
Binary file not shown.

controllers/front/confirm.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function initParams(){
3838

3939
if($nbProducts > 0 && Tools::getValue('txn_code') !== ''){
4040
$txn_code = Tools::getValue('txn_code');
41+
if(Tools::getValue('txn_code') == ""){
42+
$txn_code = $_POST['paystack-trxref'];
43+
}
4144
$amount = Tools::getValue('amounttotal');
4245
$email = Tools::getValue('email');
4346
$verification = $this->verify_txn($txn_code);

logo.png

-1.8 KB
Loading

0 commit comments

Comments
 (0)