इस प्रोजेक्ट के बारे में
The Konduto PHP SDK is a lightweight client library for integrating PHP applications with Konduto's anti-fraud service. It targets e-commerce workflows where orders can be analyzed for fraud risk before fulfillment. The SDK supports PHP 5.4 or later and requires the cURL extension. It has no runtime dependencies, while its test suite uses PHPUnit and can be run with Docker if PHP is not installed locally.
The main entry point is the Konduto class, which exposes methods for setting the API key, sending an order for analysis, querying a previously analyzed order, and updating an order's final status. The analyze method returns a recommendation and a numeric risk score. The updateOrderStatus method lets developers report outcomes such as approved, declined, fraud, cancel, or not authorized, which the README says helps the service's machine learning improve.
The SDK includes model classes for orders and related objects, including customer, payment, billing and shipping addresses, shopping cart items, delivery details, device information, travel, hotel, event, seller, agent, point of sale, tenant, and bank account data. Models can be built from associative arrays or through setters and getters. Date fields can accept DateTime objects, and the library converts them to the API format.
The README also documents payload field alignment with Konduto's official documentation, including renamed fields such as agent, point_of_sale, origin_account, destination_accounts, delivery_company, delivery_method, estimated_shipping_date, estimated_delivery_date, and tax_id. It includes detailed parameter tables for Order, Customer, Payment, addresses, delivery, device, shopping cart, travel, passengers, hotels, events, venues, tickets, attendees, sellers, agents, point of sale, tenants, and bank account objects, with required, recommended, and optional markers.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.