From 5e575a24c2c91d46544be77b8d726cd8c9276bd9 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 3 Aug 2018 16:19:24 +0700 Subject: [PATCH] Add BNI VA on PaymentType --- paysource.go | 4 ++++ paysource_test.go | 3 +++ 2 files changed, 7 insertions(+) diff --git a/paysource.go b/paysource.go index eb323a0..a42697a 100644 --- a/paysource.go +++ b/paysource.go @@ -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" @@ -76,6 +79,7 @@ var AllPaymentSource = []PaymentType{ SourceEchannel, SourceIndosatDompetku, SourceMandiriEcash, + SourceBNIVA, SourcePermataVA, SourceBCAVA, SourceIndomaret, diff --git a/paysource_test.go b/paysource_test.go index 261090e..5975ef2 100644 --- a/paysource_test.go +++ b/paysource_test.go @@ -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)