Welcome to FIB Go, the Go SDK for integrating with the First Iraqi Bank's Online Payments Service. This SDK allows you to easily accept payments, check payment statuses, handle refunds, and much more, all within your Go applications.
- Easy Payment Creation
- Payment Status Checks
- Payment Refunds
- Secure Authentication
- Comprehensive Error Handling
go get -u github.com/Lunatix01/fib-go
For detailed documentation, code samples, and best practices, please visit our documentation.
client, err := fib.New(clientID, clientSecret, isTesting)
if err != nil {
log.Fatalf("Error creating FIB client: %s - %s", err.Title, err.Description)
}
response, paymentErr := client.CreatePayment(500, "IQD", "http://callback.url")
if paymentErr != nil {
log.Fatal("Error creating payment:", paymentErr.ErrorBody)
}
For comprehensive information on how to handle errors, please refer to the Error Handling section on our Website.
We welcome contributions! Please see our Contributing Guidelines for more details.
The documentation is available in this Repository
If you find an error, or omission, or have an idea for improving the documentation, we would love to hear from you! Feel free to open an issue or create a pull request.
-
Open an Issue: If you find a problem or have a suggestion for the documentation, start by opening an issue to discuss it.
-
Create a Pull Request: Once the issue is acknowledged, you can proceed to fork the repository, clone it locally, and make your changes. Please make sure your pull request is linked to the issue.
-
Branch Naming Convention: Use the following naming conventions for your branches:
- For documentation improvements:
improvement/doc-BRANCH-NAME
- For documentation improvements:
-
Testing: Make sure to test your changes locally before submitting the pull request.
This project is licensed under the MIT License - see the LICENSE file for details