limepay-web

    0.4.0 • Public • Published

    LimePay-web

    Limepay-web is a JavaScript library that is required in order for someone to integrate with LimePay. The library is used for the UI integration. Through the library one can initialise and process LimePay payments.

    Releases

    Latest 0.4.0
    • Improves the dev experience by signing the transactions in the background. Devs do not need to provide the transactions in the UI.
    0.3.6
    • Fixes api client bug in Angular projects
    • Removes the requirement for the form HTML element
    0.3.5
    • Supports lower fees for EU Consumer VISA cards
    0.3.4
    • Adds support for LimePay powered Wallets. For more information visit the docs
    0.3.3
    • Fix the parsing of API errors and general error handling of the library
    • fix the sandbox url
    0.3.0
    • The library is being refactored in a way that is more pleasant for developers to use. For more information visit the docs
    0.2.4
    • Fixes bug regarding the API version in the Environment
    • Adds new error in the TransactionsBuilder:
    // If invalid function name is provided when signing the transacitons the following error will be thrown
    
    {
        errorName: 'TRANSACTION_VALIDATION_ERROR',
        code: 3220,
        message: `Invalid function name. {functionName} cannot be found in the provided ABI`
    }
    
    
    0.2.3
    • Parsing of API Errors is fixed. The library is parsing the errors properly, retrieving the whole object, not the message string only as it was before. All errors from the API are parsed as error object or array of error objects. Example of error object:
    {
        errorName, // Some Error name
        code, // Number for error code
        message // Detailed description of the error
    }
    
    • LimePay Config Object is modified. The LimePay environment is not provided as URL (as it was before), but as environment. Example:

    Before:

    limePayConfig = {
        URL: `limepay-URL`,
        eventHandler: {
            onSuccessfulSubmit: function () {
            },
            onFailedSubmit: function (err) {                
            }
        }
    }
    

    Now:

    limePayConfig = {
        environment: LimePayWeb.Environment.Sandbox, // or LimePayWeb.Environment.Production for Production Environment 
        eventHandler: {
            onSuccessfulSubmit: function () {
            },
            onFailedSubmit: function (err) {                
            }
        }
    }
    

    Install

    npm i limepay-web

    DownloadsWeekly Downloads

    0

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    514 kB

    Total Files

    49

    Last publish

    Collaborators

    • bakasura
    • daniel.k.ivanov
    • thcrnk
    • vsavov