AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

MerchantAccounts.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Commerce\Payments;
  3. use App\Models\Store;
  4. /**
  5. * Merchants' own payment accounts (Stripe Connect). Shoppers pay straight into them, never into ours.
  6. */
  7. interface MerchantAccounts
  8. {
  9. /**
  10. * Open a new account for the store. Returns the provider's account id.
  11. *
  12. * @throws PaymentException
  13. */
  14. public function create(Store $store, string $email): string;
  15. /**
  16. * A one-time link to the provider's own sign-up form for the account.
  17. * The merchant comes back to $returnUrl, or to $refreshUrl when the link has expired.
  18. *
  19. * @throws PaymentException
  20. */
  21. public function setupLink(string $accountId, string $returnUrl, string $refreshUrl): string;
  22. /**
  23. * @throws PaymentException
  24. */
  25. public function status(string $accountId): MerchantAccountStatus;
  26. /**
  27. * Ask the provider to switch on FPX (online banking) for the account, and show it to shoppers.
  28. * Only possible once the merchant has finished the sign-up form.
  29. *
  30. * @throws PaymentException
  31. */
  32. public function requestFpx(string $accountId): void;
  33. }