Versions in this module Expand all Collapse all v1 v1.1.0 Oct 22, 2018 Changes in this version type Options + P12Data []byte + RootData []byte v1.0.0 Sep 13, 2017 Changes in this version + var ErrNoLocationHeader = errors.New("Error: No location header from Swish API") + type Client struct + func NewClient(opts *Options) (*Client, error) + func (c *Client) CreatePaymentRequest(ctx context.Context, req *PaymentRequest) (*PaymentRequest, error) + func (c *Client) CreateRefundRequest(ctx context.Context, req *PaymentRequest) (*PaymentRequest, error) + func (c *Client) PaymentRequest(ctx context.Context, id string) (*PaymentRequest, error) + func (c *Client) RefundRequest(ctx context.Context, id string) (*PaymentRequest, error) + func (s *Client) URL() string + type Error struct + AdditionalInformation string + ErrorCode string + ErrorMessage string + type Options struct + Client *http.Client + Env string + P12 string + Passphrase string + Root string + type PaymentRequest struct + AdditionalInformation string + Amount string + CallbackURL string + Currency string + DateCreated string + DatePaid string + ErrorCode string + ErrorMessage string + ID string + Message string + OriginalPaymentReference string + PayeeAlias string + PayeePaymentReference string + PayerAlias string + PayerPaymentReference string + PaymentReference string + Status string