Skip to content

go package to integrate with Faras API using go language

License

Notifications You must be signed in to change notification settings

Faras-Invoicing/gofaras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gofaras

go package to integrate with Faras API using go language

Example

 customer := gofaras.Customer{
    Name: "Ahmad,
    PhoneNumber : 96655555555,
    ID:    "122",
    Email: "ahmad@example.com",
 }
 product := gofaras.Product{
    ProductName: "Coffee Mug",
    Quantity: 1,
    Price: 20.5,
 }
 products := make([]gofaras.Product, 0)
 products = append(products, product)
 inv := gofaras.Invoice{
    Key : "your api key",
    Products: products,
    Customer: customer,
    TestMode: 0, // 1 is test, 0 is production
  }
 isErr, Errmsg, url, pdfurl := gofaras.NewInvoice(inv)

About

go package to integrate with Faras API using go language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages