func (client *Client) CreatePayout(p Payout) (payout Payout, err error) {
	match, _ := regexp.MatchString("^[[:upper:]]{3}$", p.Currency)
	if !match {
		err = errors.New("BitPayArgumentError: invalid currency code")
		return payout, err
	}
	p.Token = client.Token.Token
	response, err := client.Post("payouts", p)
	body, err := ioutil.ReadAll(response.Body)
	json.Unmarshal(body, &payout)
	return payout, err
}
// CreatePayout create and returns a PayOut.
CreatePayout create and returns a PayOut.
// CreatePayout create and returns a PayOut .
func (client *Client) CreatePayout(p Payout) (payout Payout, err error) {
	match, _ := regexp.MatchString("^[[:upper:]]{3}$", p.Currency)
	if !match {
		err = errors.New("BitPayArgumentError: invalid currency code")
		return payout, err
	}
	p.Token = client.Token.Token
	response, err := client.Post("payouts", p)
	body, err := ioutil.ReadAll(response.Body)
	json.Unmarshal(body, &payout)
	return payout, err
}
func ( client * Client ) CreatePayout ( p Payout ) ( payout Payout , err error ) { match , _ := regexp . MatchString ( " " , p . Currency ) if ! match { err = errors . New ( " " ) return payout , err } p . Token = client . Token . Token response , err := client . Post ( " " , p ) body , err := ioutil . ReadAll ( response . Body ) json . Unmarshal ( body , & payout ) return payout , err }
CreatePayout create and returns a PayOut.
CreatePayout create and returns a PayOut .