Documentation ¶
Index ¶
- Constants
- func Decrypt(input []byte, key string) (output []byte, err error)
- func Encrypt(input []byte, key string) (output []byte, err error)
- func GetChecksumFromArray(paramsMap map[string]string, key string) (checksum string, err error)
- func VerifyCheckum(paramsMap map[string]string, key string) (ok bool)
- type Crypter
- type PaytmResponse
Constants ¶
View Source
const ( PaytmMerchantKey = `xxxxxxxxx` MID = `xxxxxxxxxxxxxxxxxxxx` INDUSTRY_TYPE_ID = `Retail` CHANNEL_ID = `WAP` WEBSITE = `APPSTAGING` CALLBACK_URL = `https://securegw-stage.paytm.in/theia/paytmCallback?ORDER_ID=` TransactionStatusAPI = `https://securegw-stage.paytm.in/merchant-status/getTxnStatus` )
Variables ¶
This section is empty.
Functions ¶
func GetChecksumFromArray ¶
Types ¶
type PaytmResponse ¶
type PaytmResponse struct { TXNID string `json:"TXNID"` BANKTXNID string `json:"BANKTXNID"` ORDERID string `json:"ORDERID"` TXNAMOUNT string `json:"TXNAMOUNT"` STATUS string `json:"STATUS"` TXNTYPE string `json:"TXNTYPE"` GATEWAYNAME string `json:"GATEWAYNAME"` RESPCODE string `json:"RESPCODE"` RESPMSG string `json:"RESPMSG"` BANKNAME string `json:"BANKNAME"` MID string `json:"MID"` PAYMENTMODE string `json:"PAYMENTMODE"` REFUNDAMT string `json:"REFUNDAMT"` TXNDATE string `json:"TXNDATE"` }
func GetTransactionStatus ¶
Click to show internal directories.
Click to hide internal directories.