Documentation ¶
Index ¶
- Variables
- type Config
- type Paygent
- func (paygent *Paygent) Authorize(amount uint64, params gomerchant.AuthorizeParams) (gomerchant.AuthorizeResponse, error)
- func (paygent *Paygent) Capture(transactionID string, params gomerchant.CaptureParams) (gomerchant.CaptureResponse, error)
- func (paygent *Paygent) Client() (*http.Client, error)
- func (paygent *Paygent) CompleteAuthorize(paymentID string, params gomerchant.CompleteAuthorizeParams) (gomerchant.CompleteAuthorizeResponse, error)
- func (paygent *Paygent) CreateCreditCard(creditCardParams gomerchant.CreateCreditCardParams) (gomerchant.CreditCardResponse, error)
- func (paygent *Paygent) DeleteCreditCard(deleteCreditCardParams gomerchant.DeleteCreditCardParams) (gomerchant.DeleteCreditCardResponse, error)
- func (paygent *Paygent) GetCreditCard(getCreditCardParams gomerchant.GetCreditCardParams) (gomerchant.GetCreditCardResponse, error)
- func (paygent *Paygent) ListCreditCards(listCreditCardsParams gomerchant.ListCreditCardsParams) (gomerchant.ListCreditCardsResponse, error)
- func (paygent *Paygent) Query(transactionID string) (gomerchant.Transaction, error)
- func (paygent *Paygent) Refund(transactionID string, amount uint, params gomerchant.RefundParams) (response gomerchant.RefundResponse, err error)
- func (paygent *Paygent) Request(telegramKind string, params gomerchant.Params) (Response, error)
- func (paygent *Paygent) SecureCodeAuthorize(amount uint64, secureCodeParams SecureCodeParams, ...) (gomerchant.AuthorizeResponse, error)
- func (paygent *Paygent) Void(transactionID string, params gomerchant.VoidParams) (response gomerchant.VoidResponse, err error)
- type Response
- type SecureCodeParams
Constants ¶
This section is empty.
Variables ¶
View Source
var PaygentServerTimeZone, _ = time.LoadLocation("Asia/Tokyo")
View Source
var ResponseParser = regexp.MustCompile(`(?s)(\w+?)=(<!DOCTYPE.*HTML>|.*?)(\r\n|$)`)
View Source
var TelegramServiceDomain = "https://service.paygent.co.jp"
View Source
var TelegramServiceSandboxDomain = "https://sandbox.paygent.co.jp"
View Source
var TelegramServiceURLs = map[string]string{
"01": "/n/atm/request",
"02": "/n/card/request",
"11": "/n/card/request",
"03": "/n/conveni/request",
"04": "/n/conveni/request_print",
"05": "/n/bank/request",
"06": "/n/bank/requestasp",
"07": "/n/virtualaccount/request",
"09": "/n/ref/request",
"091": "/n/ref/paynotice",
"093": "/n/ref/runnotice",
"094": "/n/ref/paymentref",
"10": "/n/c/request",
"12": "/n/c/request",
"20": "/n/o/requestdata",
"13": "/n/paypal/request",
"15": "/n/emoney/request",
}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MerchantID string `required:"true"` ConnectID string `required:"true"` ConnectPassword string `required:"true"` TelegramVersion string CertPassword string ClientFilePath string // this is required, if ClientFileContent is blank ClientFileContent string // this is required, if ClientFilePath is blank CAFilePath string // this is required, if CAFileContent is blank CAFileContent string // this is required, if CAFilePath is blank ProductionMode bool }
type Paygent ¶
type Paygent struct {
Config *Config
}
func (*Paygent) Authorize ¶
func (paygent *Paygent) Authorize(amount uint64, params gomerchant.AuthorizeParams) (gomerchant.AuthorizeResponse, error)
func (*Paygent) Capture ¶
func (paygent *Paygent) Capture(transactionID string, params gomerchant.CaptureParams) (gomerchant.CaptureResponse, error)
func (*Paygent) CompleteAuthorize ¶
func (paygent *Paygent) CompleteAuthorize(paymentID string, params gomerchant.CompleteAuthorizeParams) (gomerchant.CompleteAuthorizeResponse, error)
func (*Paygent) CreateCreditCard ¶
func (paygent *Paygent) CreateCreditCard(creditCardParams gomerchant.CreateCreditCardParams) (gomerchant.CreditCardResponse, error)
func (*Paygent) DeleteCreditCard ¶
func (paygent *Paygent) DeleteCreditCard(deleteCreditCardParams gomerchant.DeleteCreditCardParams) (gomerchant.DeleteCreditCardResponse, error)
func (*Paygent) GetCreditCard ¶
func (paygent *Paygent) GetCreditCard(getCreditCardParams gomerchant.GetCreditCardParams) (gomerchant.GetCreditCardResponse, error)
func (*Paygent) ListCreditCards ¶
func (paygent *Paygent) ListCreditCards(listCreditCardsParams gomerchant.ListCreditCardsParams) (gomerchant.ListCreditCardsResponse, error)
func (*Paygent) Query ¶
func (paygent *Paygent) Query(transactionID string) (gomerchant.Transaction, error)
func (*Paygent) Refund ¶
func (paygent *Paygent) Refund(transactionID string, amount uint, params gomerchant.RefundParams) (response gomerchant.RefundResponse, err error)
func (*Paygent) SecureCodeAuthorize ¶
func (paygent *Paygent) SecureCodeAuthorize(amount uint64, secureCodeParams SecureCodeParams, params gomerchant.AuthorizeParams) (gomerchant.AuthorizeResponse, error)
func (*Paygent) Void ¶
func (paygent *Paygent) Void(transactionID string, params gomerchant.VoidParams) (response gomerchant.VoidResponse, err error)
type SecureCodeParams ¶
Click to show internal directories.
Click to hide internal directories.