Exemplo n.º 1
0
<?php

$recipient = OmiseRecipient::create(array('name' => 'Omise Tester', 'description' => 'Tester account', 'email' => '*****@*****.**', 'type' => 'individual', 'tax_id' => '', 'bank_account' => array('brand' => 'bbl', 'number' => '1234567890', 'name' => 'Tester Account')));
Exemplo n.º 2
0
 /**
  * Assert that a recipient is successfully created with the given parameters set.
  *
  */
 public function testCreate()
 {
     $recipient = OmiseRecipient::create(array('name' => 'Nuttanon T', 'description' => 'Nuttanon T\'s account', 'email' => '*****@*****.**', 'type' => 'individual', 'tax_id' => '', 'bank_account' => array('brand' => 'scb', 'number' => '1234567890', 'name' => 'Nuttanon T')));
     $this->assertArrayHasKey('object', $recipient);
     $this->assertEquals('recipient', $recipient['object']);
 }