Documentation ¶
Index ¶
- Variables
- func ComputeHmac(payload string, secret string) string
- func ComputeHmac256(payload string, secret string) string
- func RazorPayAuth(token string) (error_code string, error_msg string, err error)
- func RazorVerifyChecksum(dataMap map[string]string, appID int64) (res string, err error)
- func RazorVerifySubsChecksum(dataMap map[string]string, token string) (res string)
- func RazorpayFetchPayment(paymentId string) (data string, err error)
- func StripePayCreate(amount int, currency string, receipt string, payment_capture int, appID int64, ...) (string, error)
- func StripePayCreateOrder(Title, currency string, amount int, ptype, packagetype string, tp string) (string, error)
- func StripePaymentIntent(amount int, currency string, appID int64) string
- type Add
- type Item
- type Items
- type PaymentRef
- type PaymentVal
- type PaymentsStr
- type RazorAddon
- type RazorAddonResponse
- type RazorCancel
- type RazorCancelResponse
- func RazorCancelSubs(subscription_id string, token int64) (res *RazorCancelResponse, error_code string, error_msg string, err error)
- func RazorHoldSubs(subscription_id string, token int64) (res *RazorCancelResponse, error_code string, error_msg string, err error)
- func RazorResumeSubs(subscription_id string, token int64) (res *RazorCancelResponse, error_code string, error_msg string, err error)
- type RazorPause
- type RazorPay
- type RazorPayOrder
- type RazorPlan
- type RazorPlanResponse
- type RazorResponse
- func RazorCreateOrder(amount int, currency string, receipt string, payment_capture int, appID int64) (res *RazorResponse, error_code string, error_msg string, err error)
- func RazorCreateOrder1(amount int, currency string, receipt string, payment_capture int, appID int64, ...) (res *RazorResponse, error_code string, error_msg string, err error)
- func RazorCreateSubscription(plan_id string, start_at int, subscription_length int, payment_capture int, ...) (res *RazorResponse, error_code string, error_msg string, err error)
- type RazorResume
Constants ¶
This section is empty.
Variables ¶
View Source
var ENVIRONMENT string
View Source
var PGDATA map[string]interface{}
View Source
var RAZ_API_KEY string
type RazorPay struct { Amount int `json:"amount"` Currency string `json:"currency"` Receipt string `json:"receipt"` Payment_capture bool `json:"payment_capture"` }
View Source
var RAZ_SECRET_KEY string
Functions ¶
func ComputeHmac ¶
func ComputeHmac256 ¶
func RazorPayAuth ¶
func RazorVerifyChecksum ¶
func RazorVerifySubsChecksum ¶
func RazorpayFetchPayment ¶
func StripePayCreate ¶
func StripePayCreateOrder ¶
Types ¶
type PaymentRef ¶
type PaymentRef struct {
PymntRef string `json:"trans_id"`
}
type PaymentVal ¶
type PaymentsStr ¶
type PaymentsStr struct { Default string `json:"default"` RazorPay PaymentVal `json:"razorpay"` Stripe PaymentVal `json:"stripe"` }
func GetPaymentsOpions ¶
func GetPaymentsOpions(AppID int64) (PaymentsStr, error)
type RazorAddon ¶
type RazorAddonResponse ¶
type RazorCancel ¶
type RazorCancel struct {
CancelAtCycleEnd int `json:"cancel_at_cycle_end"`
}
type RazorCancelResponse ¶
type RazorCancelResponse struct { Id string `json:"id"` Entity string `json:"entity"` SubscriptionId string `json:"subscription_id"` Quantity int `json:"quantity"` }
func RazorCancelSubs ¶
func RazorHoldSubs ¶
func RazorResumeSubs ¶
type RazorPause ¶
type RazorPause struct {
PauseAt string `json:"pause_at"`
}
type RazorPayOrder ¶
type RazorPayOrder struct { Amount int `json:"amount"` Currency string `json:"currency"` Receipt string `json:"receipt"` Payment_capture int `json:"payment_capture"` Notes PaymentRef `json:"notes"` }
type RazorPlanResponse ¶
type RazorResponse ¶
type RazorResponse struct { Id string `json:"id"` Entity string `json:"entity"` Amount int `json:"amount"` Amount_paid int `json:"amount_paid"` Amount_due int `json:"amount_due"` Currency string `json:"currency"` Receipt string `json:"receipt"` Offer_id string `json:"offer_id"` Status string `json:"status"` Attempts int `json:"attempts"` Notes []string Created_at int `json:"created_at"` }
func RazorCreateOrder ¶
func RazorCreateOrder1 ¶
type RazorResume ¶
type RazorResume struct {
ResumeAt string `json:"resume_at"`
}
Click to show internal directories.
Click to hide internal directories.