func NewCustomer(customerId string, cardToken string) *Customer { customer := &Customer{} customer.Client = base.NewClient() customer.Card = &base.CreditCard{} customer.Subscription = &base.Subscription{} customer.Id = customerId customer.Card.Token = cardToken return customer }
func init() { client = conekta.NewClient() client.ApiKey = "<api_key>" }