protected function RobokassaPayment::doCancel in Commerce robokassa 8.2
File
- src/
Plugin/ Commerce/ PaymentGateway/ RobokassaPayment.php, line 273
Class
- RobokassaPayment
- Provides the Off-site Robokassa payment gateway.
Namespace
Drupal\commerce_robokassa\Plugin\Commerce\PaymentGatewayCode
protected function doCancel(PaymentInterface $payment, array $status_response) {
$payment
->setState('authorization_expired');
$payment
->save();
return TRUE;
}