|
|
|
@ -102,7 +102,7 @@ func (s *Sub) PackPayReq() interface{} { |
|
|
|
MerchantTradeNo: r.OrderID, |
|
|
|
MerchantTradeNo: r.OrderID, |
|
|
|
Amount: fmt.Sprintf("%d", r.Amount), |
|
|
|
Amount: fmt.Sprintf("%d", r.Amount), |
|
|
|
Currency: "INR", |
|
|
|
Currency: "INR", |
|
|
|
Description: "TeenPatti", |
|
|
|
Description: "BW", |
|
|
|
Payer: Payer{UserID: fmt.Sprintf("%d", r.UID), Name: r.Name, Email: r.Email, Phone: r.Phone}, |
|
|
|
Payer: Payer{UserID: fmt.Sprintf("%d", r.UID), Name: r.Name, Email: r.Email, Phone: r.Phone}, |
|
|
|
PayMethod: struct { |
|
|
|
PayMethod: struct { |
|
|
|
Type string `json:"type"` // UPI
|
|
|
|
Type string `json:"type"` // UPI
|
|
|
|
@ -123,7 +123,7 @@ func (s *Sub) PackWithdrawReq() interface{} { |
|
|
|
MerchantTradeNo: r.OrderID, |
|
|
|
MerchantTradeNo: r.OrderID, |
|
|
|
Amount: fmt.Sprintf("%d", r.Amount), |
|
|
|
Amount: fmt.Sprintf("%d", r.Amount), |
|
|
|
Currency: "INR", |
|
|
|
Currency: "INR", |
|
|
|
Description: "TeenPatti", |
|
|
|
Description: "BW", |
|
|
|
NotifyUrl: values.GetWithdrawCallback(values.EaniPay), |
|
|
|
NotifyUrl: values.GetWithdrawCallback(values.EaniPay), |
|
|
|
} |
|
|
|
} |
|
|
|
if r.PayType == common.WithdrawTypeBank { |
|
|
|
if r.PayType == common.WithdrawTypeBank { |
|
|
|
|