Skip to content

Commit

Permalink
Merge pull request veritrans#20 from haritsfahreza/features/add-bni-va
Browse files Browse the repository at this point in the history
Add BNI VA on PaymentType
  • Loading branch information
rizdaprasetya authored Aug 7, 2018
2 parents 0cca7e8 + 5e575a2 commit d244b01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions paysource.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const (
// SourceBankTransfer : bank_transfer
SourceBankTransfer PaymentType = "bank_transfer"

// SourceBNIVA : bni_va
SourceBNIVA PaymentType = "bni_va"

// SourcePermataVA : permata_va
SourcePermataVA PaymentType = "permata_va"

Expand Down Expand Up @@ -76,6 +79,7 @@ var AllPaymentSource = []PaymentType{
SourceEchannel,
SourceIndosatDompetku,
SourceMandiriEcash,
SourceBNIVA,
SourcePermataVA,
SourceBCAVA,
SourceIndomaret,
Expand Down
3 changes: 3 additions & 0 deletions paysource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ func TestPaymentType(t *testing.T) {
is := is.New(t)
is.Equal("credit_card", midtrans.SourceCreditCard)
is.Equal("bank_transfer", midtrans.SourceBankTransfer)
is.Equal("bca_va", midtrans.SourceBCAVA)
is.Equal("permata_va", midtrans.SourcePermataVA)
is.Equal("bni_va", midtrans.SourceBNIVA)
is.Equal("cimb_clicks", midtrans.SourceCimbClicks)
is.Equal("danamon_online", midtrans.SourceDanamonOnline)
is.Equal("mandiri_clickpay", midtrans.SourceMandiriClickpay)
Expand Down

0 comments on commit d244b01

Please sign in to comment.