Documentation ¶
Index ¶
- type Card
- func (c *Card) Charge(currency string, amount int) (*stripe.PaymentIntent, string, error)
- func (card *Card) CreateCustomer(pm, email string) (*stripe.Customer, string, error)
- func (card *Card) CreatePaymentIntent(currency string, amount int) (*stripe.PaymentIntent, string, error)
- func (card *Card) GetPaymentMethod(s string) (*stripe.PaymentMethod, error)
- func (card *Card) RetrivePaymentIntent(id string) (*stripe.PaymentIntent, error)
- func (card *Card) SubscribeToPlan(customer *stripe.Customer, plan, email, last4, cardType string) (*stripe.Subscription, error)
- type Status
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
func (*Card) CreateCustomer ¶
func (*Card) CreatePaymentIntent ¶
func (*Card) GetPaymentMethod ¶
GetPaymentMethod retrieves the payment intent by payment id
func (*Card) RetrivePaymentIntent ¶
RetrivePaymentIntent gets existing payment intent
func (*Card) SubscribeToPlan ¶
Click to show internal directories.
Click to hide internal directories.