Skip to content

The SKitLs.Payments.Lava is a comprehensive toolkit designed to facilitate seamless integration with the Lava payment service. Lava API Documentation: https://dev.lava.ru/

License

Notifications You must be signed in to change notification settings

SKitLs-dev/SKitLs.Payments.Lava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SKitLs.Payments.Lava Static Badge GitHub Nuget CodeFactor

README version: 2024.04.17, Source Code

The SKitLs.Payments.Lava is a comprehensive toolkit designed to facilitate seamless integration with the Lava payment service.

Requirements

Usage

All methods are implemented in accordance with the specifications provided in the official documentation and automatically sign the request headers with an HMAC SHA256 signature.

Create LavaShop instance

var shop = new LavaShop("shopId", "secret_key");

Create Invoice

var invoiceResponse = await shop.CreateInvoiceAsync("orderId_220102", 100);
if (invoiceResponse.StatusCheck)
{
    var invoice = invoiceResponse.Data;
    // Assuming invoice.InvoiceId = 9adea8c8-f91e-47ba-1be2-93b52e78329a
    var payUrl = invoice.URL;
}
else
{
    var error = invoiceResponse.Error;
}

Get Invoice Status

var invoiceResponse = await shop.GetInvoiceStatusByInvoiceIdAsync("9adea8c8-f91e-47ba-1be2-93b52e78329a");
// OR var invoiceResponse = await shop.GetInvoiceStatusByOrderIdAsync("orderId_220102");
if (invoiceResponse.StatusCheck)
{
    var invoice = invoiceResponse.Data;
}
else
{
    var error = invoiceResponse.ErrorData;
}

WebHooks Model

For the management of WebHooks, the class LavaInvoiceWebHook is available. To authenticate received data, utilize the methods LavaShop.SetAdditionalSecret(string) and LavaShop.CheckSignature(string, string).

Rest Facilities

Currently supported:

Currently not supported:

Contributors

Currently, there are no contributors actively involved in this project. However, our team is eager to welcome contributions from anyone interested in advancing the project's development.

We value every contribution and look forward to collaborating with individuals who share our vision and passion for this endeavor. Your participation will be greatly appreciated in moving the project forward.

Thank you for considering contributing to our project.

License

This project is distributed under the terms of the MIT License.

Copyright (c) 2024, SKitLs

Developer contact

For any issues related to the project, please feel free to reach out to us through the project's GitHub page. We welcome bug reports, feedback, and any other inquiries that can help us improve the project.

You can also contact the project owner directly via their GitHub profile at the following link or email: skitlsdev@gmail.com

Your collaboration and support are highly appreciated, and we will do our best to address any concerns or questions promptly and professionally. Thank you for your interest in our project.

Notes

Thank you for choosing our solution for your needs, and we look forward to contributing to your project's success.

About

The SKitLs.Payments.Lava is a comprehensive toolkit designed to facilitate seamless integration with the Lava payment service. Lava API Documentation: https://dev.lava.ru/

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages