Permalink
Browse files

fix example code

  • Loading branch information...
1 parent 13fb243 commit 5e7f8c1cb381f50b0e2e8574db8b08689dfcd2e5 @joshuafarr joshuafarr committed Jan 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 README
View
@@ -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();
@@ -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 {

0 comments on commit 5e7f8c1

Please sign in to comment.