This SDK provides tools for working with the Paysera Delivery API. To ensure the proper functioning of the services in this SDK, you need to implement a set of interfaces in your system:
- MerchantOrderInterface.php - An interface for accessing your (merchant) order data.
- MerchantOrderPartyInterface.php - Recipient information. Since there are cases where the recipient and the payer are different people, two separate implementations are required for this. In
MerchantOrderInterface, recipient data is retrieved throughgetShipping, and payer data throughgetBilling.- MerchantOrderContactInterface.php - Information about the contact person
- MerchantOrderAddressInterface.php - Contact person's address
- DeliveryTerminalLocationInterface.php - Information about the contact person's delivery terminal location
- MerchantOrderItemInterface.php - An interface for accessing order's item data.
- NotificationCallbackInterface.php - Configuration of the URL address for receiving callbacks and the events that the callbacks will be sent for (the SDK currently only supports handling the order_updated event).
- PayseraDeliveryGatewayInterface.php - Information about the delivery gateway (only those provided by Paysera Delivery API)
- PayseraDeliveryGatewaySettingsInterface.php - Gateway settings
- MerchantOrderPartyInterface.php - Recipient information. Since there are cases where the recipient and the payer are different people, two separate implementations are required for this. In
- PayseraDeliverySettingsInterface.php - The plugin settings
- MerchantOrderRepositoryInterface.php - An interface for your (merchant) orders storage
- DeliveryGatewayRepositoryInterface.php - An interface for plugin's delivery gateways storage (should provide only Paysera Delivery API gateways)
- DeliveryLoggerInterface.php - A logger for info and error messages related to Delivery Order processing
- MerchantOrderLoggerInterface.php - A logger for info messages related to your (merchant) order processing