Exemplo n.º 1
0
 /**
  * Send data to pin.net.au
  */
 public function pinPayMent()
 {
     $pin = new Pin();
     $pin->charges_parameters = array('amount' => sprintf('%d00', $_POST['amount']), 'currency' => 'USD', 'description' => $this->description, 'email' => $this->email, 'ip_address' => Yii::app()->request->userHostAddress, 'card' => array('number' => $this->number, 'expiry_month' => $this->expiry_month, 'expiry_year' => $this->expiry_year, 'cvc' => $this->cvc, 'name' => $this->name, 'address_line1' => $this->address_line1, 'address_line2' => $this->address_line2, 'address_city' => $this->address_city, 'address_postcode' => $this->address_postcode, 'address_state' => $this->address_state, 'address_country' => $this->address_country));
     return json_decode($pin->test(), true);
 }