AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ShippingProvider.php 440B

1234567891011121314151617
  1. <?php
  2. namespace App\Commerce\Shipping;
  3. use App\Models\Store;
  4. /**
  5. * Works out the shipping fee for an order.
  6. * Flat rates are the first provider; EasyParcel live rates can be added behind the same interface later.
  7. */
  8. interface ShippingProvider
  9. {
  10. /**
  11. * The shipping fee in sen for an order of this subtotal (in sen) to this Malaysian state.
  12. */
  13. public function quote(Store $store, int $subtotal, string $state): int;
  14. }