public function AcceptJsInterface::approvePayment in Commerce Authorize.Net 8
Approves the given payment.
Only payments in the 'unauthorized_review' and 'authorization_review' states can be approved.
Parameters
\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.
Throws
\Drupal\commerce_payment\Exception\PaymentGatewayException Thrown when the transaction fails for any reason.
1 method overrides AcceptJsInterface::approvePayment()
- AcceptJs::approvePayment in src/
Plugin/ Commerce/ PaymentGateway/ AcceptJs.php - Approves the given payment.
File
- src/
Plugin/ Commerce/ PaymentGateway/ AcceptJsInterface.php, line 28
Class
- AcceptJsInterface
- Provides the Authorize.net Accept.js payment gateway interface.
Namespace
Drupal\commerce_authnet\Plugin\Commerce\PaymentGatewayCode
public function approvePayment(PaymentInterface $payment);