CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • API insert into Contribute not showing in Joomla Administrator
Pages: [1]

Author Topic: API insert into Contribute not showing in Joomla Administrator  (Read 678 times)

sabrina

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.7
  • CMS version: Joomla 2.5.14
  • MySQL version: MySQL 5.5.32
  • PHP version: PHP 5.4.19
API insert into Contribute not showing in Joomla Administrator
August 15, 2013, 05:38:57 am
Hi

I have been using
Code: [Select]
$shoppingCart =  civicrm_api('Contribution', 'Create', array('version'=>3, 'financial_type_id'=>6, 'contact_id'=>$contactid,  'invoice_id'=>$array['cart']['order_number'], 'total_amount'=>$array['cart']['total'], 'return' => array( 'contact_id')));
to insert data into Civicrm- this appears to work, no errors and data is in the database.

When I go to the Admin area and find the contact - the Contribution tab says 1 but when I click on the tab I get - 'No contributions have been recorded from this contact'.

Am I missing something?

Thanks
                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

sabrina

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • CiviCRM version: CiviCRM 4.3.7
  • CMS version: Joomla 2.5.14
  • MySQL version: MySQL 5.5.32
  • PHP version: PHP 5.4.19
Re: API insert into Contribute not showing in Joomla Administrator
September 05, 2013, 03:11:10 am
I have now sorted this as I did not have the correct Financial types and Financial Accounts set up!   :-[

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • API insert into Contribute not showing in Joomla Administrator

This forum was archived on 2017-11-26.