Skip to content

Commit

Permalink
fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafarr committed Jan 12, 2012
1 parent 13fb243 commit 5e7f8c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README
Expand Up @@ -29,12 +29,14 @@ have is:
$apiEndpoint = 'https://api.firstgiving.com/';

// Create an instance of the API client library.
$firstGivingApiClient = new FirstGivingAPIClient($apiKey, $apiSecret, $apiEndpoint)
$firstGivingApiClient = new FirstGivingAPIClient($apiKey, $apiSecret, $apiEndpoint);

// Create a donation.
$donation = new FirstGivingDonation();
$donation->setCharityId('1234');
$donation->setDescription('Test transaction.');
$donation->setAmount(10.00);
$donation->setCurrencyCode('USD');

// Create a credit card payment.
$creditCardPayment = new FirstGivingCreditCardPayment();
Expand All @@ -52,8 +54,6 @@ have is:
$creditCardPayment->setBillToCountry('US');
$creditCardPayment->setBillToEmail('test@example.com');
$creditCardPayment->setBillToPhone('1233211234');
$creditCardPayment->setAmount(10.00);
$creditCardPayment->setCurrencyCode('USD');

try {

Expand Down

0 comments on commit 5e7f8c1

Please sign in to comment.