コード例 #1
0
 public function test_credit_with_secondary_amount()
 {
     $hash_in = array('id' => 'id', 'orderId' => '2111', 'amount' => '123', 'secondaryAmount' => '2000', 'orderSource' => 'ecommerce', 'card' => array('type' => 'VI', 'number' => '4100000000000000', 'expDate' => '1213', 'cardValidationNum' => '1213'));
     $hash_out = Transactions::createCreditHash($hash_in);
     $this->assertEquals($hash_in, array_intersect($hash_in, $hash_out));
 }
コード例 #2
0
 public function test_credit_pos_tied_optional()
 {
     $hash_in = array('amount' => '2', 'litleTxnId' => '3', 'payPalNotes' => 'notes');
     $hash_out = Transactions::createCreditHash($hash_in);
     $this->assertEquals($hash_in, array_intersect($hash_in, $hash_out));
 }