Versions in this module Expand all Collapse all v0 v0.1.4 Oct 30, 2023 v0.1.3 Oct 30, 2023 Changes in this version + const URL + func GenerateSignatureDefault(MID string, Secret string) string + func GenerateSignatureOrder(MID string, Secret string, RefId string) string + func IntToString(val int) string + func SendGet(url string) (string, error) + func SendPostJson(url string, data fiber.Map) (string, error) + func StringToInt(val string) int + func ToIDR(nominal int) string + type Tokopay interface + GetInfo func() (entity.ReturnInfoMerchant, error) + Order func(params entity.TokopayOrderSimple) (entity.OutputOrderSimple, error) + OrderAdvanced func(params entity.TokopayOrderAdvanced) + func NewTokopayImpl(param entity.TokopayCreden) Tokopay + type TokopayImpl struct + MerchantId string + Secret string + func (t TokopayImpl) GetInfo() (entity.ReturnInfoMerchant, error) + func (t TokopayImpl) Order(params entity.TokopayOrderSimple) (entity.OutputOrderSimple, error) + func (t TokopayImpl) OrderAdvanced(params entity.TokopayOrderAdvanced)