Help us shape the future of Go! Take the 2026 Go Developer Survey

skrill

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2017 License: MIT Imports: 5 Imported by: 0

README

Build Status

skrill-go

Skrill client for Golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a Skrill client

func New

func New(configs ...Config) *Client

New initiates Skrill client

func (*Client) Prepare

func (c *Client) Prepare(param PrepareParam) (redirectURL string, err error)

Prepare make a request to prepare payment and returns redirect url

type Config

type Config struct {
	URL string
}

Config is configration to initiate Skrill client

type ErrSkrill

type ErrSkrill struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

ErrSkrill describes error response from Skrill API

func (ErrSkrill) Error

func (e ErrSkrill) Error() string

type PrepareParam

type PrepareParam struct {
	PayToEmail    string `json:"pay_to_email"`
	PrepareOnly   string `json:"prepare_only"`
	Amount        int    `json:"amount"`
	Currency      string `json:"currency"`
	TransactionID string `json:"transaction_id,omitempty"`
}

PrepareParam describes describes the payment source used to make Prepare

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL