You are here

public function PayPalPaymentECPaymentExecution::testPaymentExecutionFail in PayPal for Payment 7

Tests payment execution using the sandbox server.

File

paypal_payment_ec/tests/PayPalPaymentECPaymentExecution.test, line 49
Contains \PayPalPaymentECPaymentExecution.

Class

PayPalPaymentECPaymentExecution
Tests payment execution.

Code

public function testPaymentExecutionFail() {
  $this
    ->assertPaymentExecution(PayPalPaymentECPaymentMethodController::NVP_API_SERVER_SANDBOX, PayPalPaymentECPaymentMethodController::CAPTURE_AUTOMATIC, PAYMENT_STATUS_FAILED);
}