Skip to content

Commit

Permalink
Fixed the camt structure
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnaprasadmg committed Mar 8, 2018
1 parent 6c91d5f commit eaab830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/camt.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (c *CamtDocument) AddTransactionData(transactionData map[string]*Transactio
for _, data := range transactionData {
CdtTrfTxInf := c.cstmrCdtTrfInitn.FindElement("PmtInf").CreateElement("CdtTrfTxInf")
PmtId := CdtTrfTxInf.CreateElement("PmtId")
EndToEndId := PmtId.CreateElement("PmtId")
EndToEndId := PmtId.CreateElement("EndToEndId")
EndToEndId.CreateCharData(config.GetString("camt.CamtEndToEnd") + data.endToEnd)

Amt := CdtTrfTxInf.CreateElement("Amt")
Expand All @@ -111,7 +111,7 @@ func (c *CamtDocument) AddTransactionData(transactionData map[string]*Transactio
IBAN.CreateCharData(data.iban)

Purp := CdtTrfTxInf.CreateElement("Purp")
Cd := Purp.CreateElement("Purp")
Cd := Purp.CreateElement("Cd")
Cd.CreateCharData(config.GetString("camt.CamtCd"))

RmtInf := CdtTrfTxInf.CreateElement("RmtInf")
Expand Down

0 comments on commit eaab830

Please sign in to comment.