feat: moneta 2.0, MONETA.Assistant payment module for PHPShop 6.7+
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MonetaPhpShop\callback;
|
||||
|
||||
use MonetaPhpShop\order\Order;
|
||||
|
||||
interface ReceiptSource
|
||||
{
|
||||
/**
|
||||
* `MNT_ATTRIBUTES` XML-îòâåòà: `INVENTORY`, `CLIENT`, `CUSTOMER`, `PHONE`, ñòðîêè â UTF-8.
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
public function attributes(Order $order): array;
|
||||
|
||||
/**
|
||||
* Îáúåêò `receipt` JSON-îòâåòà Check URL èëè null, åñëè ÷åê íå ñîáðàòü.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function jsonReceipt(Order $order): ?array;
|
||||
}
|
||||
Reference in New Issue
Block a user