// Begins a new payment session. Searches wallet for an account that's marked
// as available and has a 0 balance. If one is found, the account number
// is returned and is marked as unavailable. If no account is found,
// a new account is created, placed in the wallet, and returned.
Begins a new payment session. Searches wallet for an account that's marked
as available and has a 0 balance. If one is found, the account number
is returned and is marked as unavailable. If no account is found,
a new account is created, placed in the wallet, and returned.
// Begins a new payment session . Searches wallet for an account that ' s marked // as available and has a 0 balance . If one is found the account number // is returned and is marked as unavailable . If no account is found // a new account is created placed in the wallet and returned .
func BeginPayment(wallet string) (string, error) {
	payload := map[string]interface{}{
		"wallet": wallet,
	}
	return client.fetchString("payment_begin", payload, "account")
}
func BeginPayment ( wallet string ) ( string , error ) { payload := map [ string ] interface { } { " " : wallet , } return client . fetchString ( " " , payload , " " ) }
Begins a new payment session.
Begins a new payment session .