AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

PaymentStatus.php 435B

123456789101112131415161718
  1. <?php
  2. namespace App\Commerce\Payments;
  3. /**
  4. * What the provider says about one payment page.
  5. */
  6. final readonly class PaymentStatus
  7. {
  8. public function __construct(
  9. public string $checkoutId,
  10. public bool $paid,
  11. /** The provider's id for the payment itself. */
  12. public ?string $reference = null,
  13. /** The amount the provider collected, in sen. */
  14. public ?int $amount = null,
  15. ) {}
  16. }