示例#1
0
<?php

$customer = OmiseCustomer::create(array('email' => '*****@*****.**', 'description' => 'John Doe (id: 30)'));
示例#2
0
 /**
  * Assert that a customer is successfully created with the given parameters set.
  *
  */
 public function testCreate()
 {
     $customer = OmiseCustomer::create(array('email' => '*****@*****.**', 'description' => 'John Doe (id: 30)', 'card' => 'tokn_test_4zmrjhuk2rndz24a6x0'));
     $this->assertArrayHasKey('object', $customer);
     $this->assertEquals('customer', $customer['object']);
 }
示例#3
0
<?php

$customer = OmiseCustomer::create(array('email' => '*****@*****.**', 'description' => 'John Doe (id: 30)', 'card' => 'tokn_test_4xs9408a642a1htto8z'));