Documentation ¶
Index ¶
- Constants
- 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
- type TokopayImpl
Constants ¶
View Source
const URL = "https://api.Tokopay.id/v1"
Variables ¶
This section is empty.
Functions ¶
func GenerateSignatureOrder ¶
func IntToString ¶
func SendPostJson ¶
func StringToInt ¶
Types ¶
type Tokopay ¶
type Tokopay interface { Order(params entity.TokopayOrderSimple) (entity.OutputOrderSimple, error) OrderAdvanced(params entity.TokopayOrderAdvanced) GetInfo() (entity.ReturnInfoMerchant, error) }
func NewTokopayImpl ¶
func NewTokopayImpl(param entity.TokopayCreden) Tokopay
type TokopayImpl ¶
func (TokopayImpl) GetInfo ¶
func (t TokopayImpl) GetInfo() (entity.ReturnInfoMerchant, error)
func (TokopayImpl) Order ¶
func (t TokopayImpl) Order(params entity.TokopayOrderSimple) (entity.OutputOrderSimple, error)
func (TokopayImpl) OrderAdvanced ¶
func (t TokopayImpl) OrderAdvanced(params entity.TokopayOrderAdvanced)
Click to show internal directories.
Click to hide internal directories.