public function testRetrieve()
 {
     $recipient = self::createTestRecipient();
     authorizeFromEnv();
     $transfer = Conekta_Transfer::create(array('amount' => 100, 'currency' => 'usd', 'recipient' => $recipient->id));
     $reloaded = Conekta_Transfer::retrieve($transfer->id);
     $this->assertEqual($reloaded->id, $transfer->id);
 }
Example #2
0
 public function transfers($params = null)
 {
     if (!$params) {
         $params = array();
     }
     $params['recipient'] = $this->id;
     $transfers = Conekta_Transfer::all($params, $this->_apiKey);
     return $transfers;
 }