Example #1
0
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
}
Example #2
0
func init() {
	client = conekta.NewClient()
	client.ApiKey = "<api_key>"
}