You are here

protected function CommercePayleapTest::getPayleapSettings in Commerce Payleap 7

Return an array with PayLeap settings

3 calls to CommercePayleapTest::getPayleapSettings()
CommercePayleapTest::testCommercePayleapAuthTransaction in tests/commerce_payleap.test
Test the PayLeap Auth transaction.
CommercePayleapTest::testCommercePayleapCardonFileTranscation in tests/commerce_payleap.test
CommercePayleapTest::testCommercePayleapDirectTransaction in tests/commerce_payleap.test
Test the PayLeap direct transaction.

File

tests/commerce_payleap.test, line 75
Functional tests for the commerce payment module user interface.

Class

CommercePayleapTest
Test payment user interface.

Code

protected function getPayleapSettings($transaction_type = PAYLEAP_TXN_TYPE_DIRECT_CAPTURE) {
  return array(
    'settings' => array(
      // API credentials
      'login' => 'commerceguys_demo_API',
      'tran_key' => 'Un2^eXMBCRJ7WSeQ',
      'vendor_number' => '761',
      'txn_payleap_type' => $transaction_type,
      'txn_mode' => PAYLEAP_TXN_MODE_TEST,
      'log' => array(
        'request' => 'request',
        'response' => 'response',
      ),
    ),
  );
}