Documentation ¶
Index ¶
- Constants
- func Bool(v bool) *bool
- func Int(v int) *int
- func Int64(v int64) *int64
- func MustParseInt64(v string) int64
- func ParseInt64(v string) (int64, error)
- func String(v string) *string
- type Client
- func (c *Client) CreateAccountLinkQRCode(ctx context.Context, req *CreateAccountLinkQRCodeRequest) (*CreateAccountLinkQRCodeResponse, *http.Response, error)
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error)
- func (c *Client) NewRequest(method, path string, body interface{}) (*http.Request, error)
- func (c *Client) ParseResponseToken(tokenString string) (*ResponseToken, error)
- type ClientOption
- type CreateAccountLinkQRCodeRequest
- type CreateAccountLinkQRCodeResponse
- type ResponseToken
Constants ¶
View Source
const ( APIEndpointProduction = "https://api.paypay.ne.jp" APIEndpointSandbox = "https://stg-api.sandbox.paypay.ne.jp" )
API endpoint base constants
Variables ¶
This section is empty.
Functions ¶
func MustParseInt64 ¶
MustParseInt64 string to int64 without error function
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client type
func New ¶
func New(apiKey, apiSecret, assumeMerchant string, options ...ClientOption) (*Client, error)
New returns a new pay client instance.
func (*Client) CreateAccountLinkQRCode ¶
func (c *Client) CreateAccountLinkQRCode(ctx context.Context, req *CreateAccountLinkQRCodeRequest) (*CreateAccountLinkQRCodeResponse, *http.Response, error)
func (*Client) NewRequest ¶
NewRequest method
func (*Client) ParseResponseToken ¶
func (c *Client) ParseResponseToken(tokenString string) (*ResponseToken, error)
type ClientOption ¶
ClientOption type
type CreateAccountLinkQRCodeRequest ¶
type CreateAccountLinkQRCodeRequest struct { Scopes []string `json:"scopes"` Nonce string `json:"nonce"` RedirectType string `json:"redirectType,omitempty"` RedirectURL string `json:"redirectUrl"` ReferenceID string `json:"referenceId"` PhoneNumber string `json:"phoneNumber,omitempty"` DeviceID string `json:"deviceId,omitempty"` UserAgent string `json:"userAgent,omitempty"` }
Click to show internal directories.
Click to hide internal directories.