public function PaymentInterface::setState in Commerce Core 8.2
Sets the payment state.
Parameters
string $state_id: The new state ID.
Return value
$this
1 method overrides PaymentInterface::setState()
- Payment::setState in modules/
payment/ src/ Entity/ Payment.php - Sets the payment state.
File
- modules/
payment/ src/ Entity/ PaymentInterface.php, line 198
Class
- PaymentInterface
- Defines the interface for payments.
Namespace
Drupal\commerce_payment\EntityCode
public function setState($state_id);