Esempio n. 1
0
 /**
  * Assert that a customer object is returned after a successful retrieve.
  *
  */
 public function testRetrieve()
 {
     $token = OmiseToken::retrieve('tokn_test_4zmrjhuk2rndz24a6x0');
     $this->assertArrayHasKey('object', $token);
     $this->assertEquals('token', $token['object']);
 }
Esempio n. 2
0
<?php

$token = OmiseToken::retrieve('tokn_test_4xs9408a642a1htto8z');
Esempio n. 3
0
<?php

$token = OmiseToken::create(array('card' => array('name' => 'Somchai Prasert', 'number' => '4242424242424242', 'expiration_month' => 10, 'expiration_year' => 2018, 'city' => 'Bangkok', 'postal_code' => '10320', 'security_code' => 123)));