You are here

public function SquareApiIntegrationTest::testCreatePayment in Commerce Square Connect 8

Tests creating a payment.

File

tests/src/Kernel/SquareApiIntegrationTest.php, line 98

Class

SquareApiIntegrationTest
Tests the Square SDK integration with Commerce.

Namespace

Drupal\Tests\commerce_square\Kernel

Code

public function testCreatePayment() {

  /** @var \Drupal\commerce_square\Plugin\Commerce\PaymentGateway\SquareInterface $gateway_plugin */
  $gateway_plugin = $this->gateway
    ->getPlugin();
  $gateway_plugin
    ->createPayment($this
    ->generateTestPayment('cnon:card-nonce-ok'));
}