/** * Create a transaction for the payment. */ protected function _create_transaction() { ORM::factory('Payment_Transaction')->values(array('user_id' => $this->_subscription->user_id, 'package_id' => $this->_subscription->package_id, 'token' => $this->_IPN->get_data('recurring_payment_id'), 'status' => Model_Payment_Transaction::STATUS_COMPLETED, 'email' => $this->_IPN->get_data('payer_email'), 'first_name' => $this->_IPN->get_data('first_name'), 'last_name' => $this->_IPN->get_data('last_name'), 'country' => $this->_IPN->get_data('residence_country')))->create(); }