From 36f1bef9da6a81146f9d557f7b5e2ec79790029e Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 Jul 2018 13:19:00 +0700 Subject: [PATCH] Remove xl_tunai and bbm_money based on official API docs --- paysource.go | 8 -------- paysource_test.go | 2 -- 2 files changed, 10 deletions(-) diff --git a/paysource.go b/paysource.go index 54663e3..eb323a0 100644 --- a/paysource.go +++ b/paysource.go @@ -13,9 +13,6 @@ const ( // SourceBCAVA : bca_va SourceBCAVA PaymentType = "bca_va" - // SourceBbmMoney : bbm_money - SourceBbmMoney PaymentType = "bbm_money" - // SourceBcaKlikpay : bca_klikpay SourceBcaKlikpay PaymentType = "bca_klikpay" @@ -46,9 +43,6 @@ const ( // SourceTelkomselCash : telkomsel_cash SourceTelkomselCash PaymentType = "telkomsel_cash" - // SourceXlTunai : xl_tunai - SourceXlTunai PaymentType = "xl_tunai" - // SourceIndosatDompetku : indosat_dompetku SourceIndosatDompetku PaymentType = "indosat_dompetku" @@ -80,8 +74,6 @@ var AllPaymentSource = []PaymentType{ SourceBriEpay, SourceTelkomselCash, SourceEchannel, - SourceBbmMoney, - SourceXlTunai, SourceIndosatDompetku, SourceMandiriEcash, SourcePermataVA, diff --git a/paysource_test.go b/paysource_test.go index bc17078..d3a0dc3 100644 --- a/paysource_test.go +++ b/paysource_test.go @@ -15,8 +15,6 @@ func TestPaymentType(t *testing.T) { is.Equal("mandiri_clickpay", midtrans.SourceMandiriClickpay) is.Equal("bri_epay", midtrans.SourceBriEpay) is.Equal("telkomsel_cash", midtrans.SourceTelkomselCash) - is.Equal("xl_tunai", midtrans.SourceXlTunai) - is.Equal("bbm_money", midtrans.SourceBbmMoney) is.Equal("echannel", midtrans.SourceEchannel) is.Equal("cstore", midtrans.SourceConvStore) is.Equal("bca_klikbca", midtrans.SourceKlikBca)