actions

package
v0.0.0-...-a11cca7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL