diff --git a/SEPASDD.php b/SEPASDD.php index adfd750..be2c02e 100644 --- a/SEPASDD.php +++ b/SEPASDD.php @@ -303,7 +303,7 @@ public function addPayment($payment){ $CdtrAcctNode->appendChild($Id_CdtrAcct_Node); $PmtInfNode->appendChild($CdtrAcctNode); - if ( isset( $config['BIC'] ) ) { + if ( isset( $this->config['BIC'] ) ) { $FinInstnId_CdtrAgt_Node->appendChild($BIC_CdtrAgt_Node); }else{ $Othr_CdtrAgt_Node->appendChild($Id_Othr_CdtrAgt_Node);