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) InquiryNotification(noticeID string) (response gomerchant.InquiryResponse, err error)
- func (paygent *Paygent) ListCreditCards(listCreditCardsParams gomerchant.ListCreditCardsParams) (gomerchant.ListCreditCardsResponse, error)
- func (paygent *Paygent) PayPayApplicationMessage(amount uint64, params gomerchant.ApplicationParams) (gomerchant.ApplicationResponse, error)
- func (paygent *Paygent) PayPayCancelAndRefundMessage(transactionID string, amount uint) (gomerchant.RefundResponse, error)
- func (paygent *Paygent) PayPaySalesMessage(transactionID string) (gomerchant.CaptureResponse, error)
- func (paygent *Paygent) Query(transactionID string) (gomerchant.Transaction, error)
- func (paygent *Paygent) RakutePayApplicationMessage(amount uint64, params gomerchant.ApplicationParams) (gomerchant.ApplicationResponse, error)
- func (paygent *Paygent) RakutenPayCancellationMessage(transactionID string) (gomerchant.VoidResponse, error)
- func (paygent *Paygent) RakutenPayCorrectionMessage(transactionID string, amount uint) (gomerchant.RefundResponse, error)
- func (paygent *Paygent) RakutenPaySalesMessage(transactionID string) (gomerchant.CaptureResponse, 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",
"270": "/n/rakutenid/request",
"271": "/n/rakutenid/request",
"272": "/n/rakutenid/request",
"273": "/n/rakutenid/request",
"420": "/n/paypay/request",
"421": "/n/paypay/request",
"422": "/n/paypay/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 SecurityCodeUse 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) InquiryNotification ¶
func (paygent *Paygent) InquiryNotification(noticeID string) (response gomerchant.InquiryResponse, err error)
func (*Paygent) ListCreditCards ¶
func (paygent *Paygent) ListCreditCards(listCreditCardsParams gomerchant.ListCreditCardsParams) (gomerchant.ListCreditCardsResponse, error)
func (*Paygent) PayPayApplicationMessage ¶
func (paygent *Paygent) PayPayApplicationMessage(amount uint64, params gomerchant.ApplicationParams) (gomerchant.ApplicationResponse, error)
Paypay authrioze function
func (*Paygent) PayPayCancelAndRefundMessage ¶
func (paygent *Paygent) PayPayCancelAndRefundMessage(transactionID string, amount uint) (gomerchant.RefundResponse, error)
func (*Paygent) PayPaySalesMessage ¶
func (paygent *Paygent) PayPaySalesMessage(transactionID string) (gomerchant.CaptureResponse, error)
func (*Paygent) Query ¶
func (paygent *Paygent) Query(transactionID string) (gomerchant.Transaction, error)
func (*Paygent) RakutePayApplicationMessage ¶
func (paygent *Paygent) RakutePayApplicationMessage(amount uint64, params gomerchant.ApplicationParams) (gomerchant.ApplicationResponse, error)
This is rakuten pay authorize function Before user confirmed on rakuten page status is 10:already applid After user confirmed status change to 20: Authorization OK
func (*Paygent) RakutenPayCancellationMessage ¶
func (paygent *Paygent) RakutenPayCancellationMessage(transactionID string) (gomerchant.VoidResponse, error)
This is rakuten pay void function
func (*Paygent) RakutenPayCorrectionMessage ¶
func (paygent *Paygent) RakutenPayCorrectionMessage(transactionID string, amount uint) (gomerchant.RefundResponse, error)
func (*Paygent) RakutenPaySalesMessage ¶
func (paygent *Paygent) RakutenPaySalesMessage(transactionID string) (gomerchant.CaptureResponse, error)
This is rakuten pay capture function
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.