recurly/recurly-client-php — Issue #8: Transactions - Amount In Cents
Author: jayncoke
Created: 2011-10-25 20:57:45+00:00
State: open

According to the transactions API [http://docs.recurly.com/api/transactions], we pass in the purchase amount in cents, when creating one.

However, I found that when using the recurly client class:

$recurlyTransaction = RecurlyTransaction(100);
$recurlyTransaction->create();

I expected that the customer would be charged $1, but in fact is being charged $100. The constructor apparently takes the amount as dollars then multiplies it by 100.

Is there a reason for this?

If not, at least update the API to note that the transaction takes dollar amounts and not amounts_in_cents.

Thanks,
Jay A.