forked from veritrans/go-midtrans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paysource_test.go
32 lines (29 loc) · 1.14 KB
/
paysource_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package midtrans_test
import (
"testing"
"github.com/cheekybits/is"
midtrans "github.com/veritrans/go-midtrans"
)
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("other_va", midtrans.SourceOtherVA)
is.Equal("cimb_clicks", midtrans.SourceCimbClicks)
is.Equal("danamon_online", midtrans.SourceDanamonOnline)
is.Equal("mandiri_clickpay", midtrans.SourceMandiriClickpay)
is.Equal("bri_epay", midtrans.SourceBriEpay)
is.Equal("telkomsel_cash", midtrans.SourceTelkomselCash)
is.Equal("echannel", midtrans.SourceEchannel)
is.Equal("cstore", midtrans.SourceConvStore)
is.Equal("indomaret", midtrans.SourceIndomaret)
is.Equal("alfamart", midtrans.SourceAlfamart)
is.Equal("bca_klikbca", midtrans.SourceKlikBca)
is.Equal("bca_klikpay", midtrans.SourceBcaKlikpay)
is.Equal("gopay", midtrans.SourceGopay)
is.Equal("akulaku", midtrans.SourceAkulaku)
is.Equal("shopeepay", midtrans.SourceShopeePay)
}