Documentation ¶
Index ¶
- func CreateCard(paymentToken string, verificationToken string, amount int64, currency string, ...) (string, error)
- func CreateCustomer(paymentToken string, verificationToken string, amount int64, currency string, ...) (string, error)
- func CreateSubscription(locationId string, planId string, customerId string, cardId string) (string, error)
- func HandleBilling(w http.ResponseWriter, r *http.Request) error
- func HandleBillingShow(w http.ResponseWriter, r *http.Request) error
- func HandleCheckoutSession(w http.ResponseWriter, r *http.Request) error
- func HandleCreateCheckoutSession(w http.ResponseWriter, r *http.Request) error
- func HandleCreateSubscription(w http.ResponseWriter, r *http.Request) error
- func HandleCustomerPortal(w http.ResponseWriter, r *http.Request) error
- func HandleRazorpayPaymentVerification(w http.ResponseWriter, r *http.Request) error
- func HandleSquare(w http.ResponseWriter, r *http.Request) error
- func HandleSquareShow(w http.ResponseWriter, r *http.Request) error
- func HandleVerification(w http.ResponseWriter, r *http.Request) error
- func HandleVerificationShow(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCard ¶
func CreateCard(paymentToken string, verificationToken string, amount int64, currency string, productId int64, addressLine1 string, addressLine2 string, givenName string, email string, country string, city string, state string, postalCode string, customerId string) (string, error)
CreateCard creates a card with the customer
func CreateCustomer ¶
func CreateCustomer(paymentToken string, verificationToken string, amount int64, currency string, productId int64, addressLine1 string, addressLine2 string, givenName string, email string, country string, city string, state string, postalCode string) (string, error)
CreateCustomer creates a customer
func CreateSubscription ¶
func CreateSubscription(locationId string, planId string, customerId string, cardId string) (string, error)
CreateSubscription creates a subscription for the user
func HandleBilling ¶
func HandleBilling(w http.ResponseWriter, r *http.Request) error
HandleBilling processes the billing details and completes the payment transaction
func HandleBillingShow ¶
func HandleBillingShow(w http.ResponseWriter, r *http.Request) error
HandleBillingShow shows the billing details page for GET request /subscriptions/billing
func HandleCheckoutSession ¶
func HandleCheckoutSession(w http.ResponseWriter, r *http.Request) error
func HandleCreateCheckoutSession ¶
func HandleCreateCheckoutSession(w http.ResponseWriter, r *http.Request) error
func HandleCreateSubscription ¶
func HandleCreateSubscription(w http.ResponseWriter, r *http.Request) error
HandleCreateSubscription creates a subscription for the customer on POST request to /subscriptions/subscribe
func HandleCustomerPortal ¶
func HandleCustomerPortal(w http.ResponseWriter, r *http.Request) error
func HandleRazorpayPaymentVerification ¶
func HandleRazorpayPaymentVerification(w http.ResponseWriter, r *http.Request) error
HandleRazorpayPaymentSuccess enables the subscription features after razorpay payment
func HandleSquare ¶
func HandleSquare(w http.ResponseWriter, r *http.Request) error
HandleSquare receives the POST request from the square web sdk at /subscriptions/square
func HandleSquareShow ¶
func HandleSquareShow(w http.ResponseWriter, r *http.Request) error
HandleSquareShow shows the web sdk payment page for the Square by responding to the GET request /subscription/square
func HandleVerification ¶
func HandleVerification(w http.ResponseWriter, r *http.Request) error
HandleVerification verifies the IPN message by responding to the POST request
func HandleVerificationShow ¶
func HandleVerificationShow(w http.ResponseWriter, r *http.Request) error
HandleVerificationShow shows the subscriptions page by responding to the GET request
Types ¶
This section is empty.