Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP error with $buyer->debit #12

Open
oppenheimer opened this issue Dec 16, 2012 · 3 comments
Open

PHP error with $buyer->debit #12

oppenheimer opened this issue Dec 16, 2012 · 3 comments
Labels

Comments

@oppenheimer
Copy link

When trying to charge a card using $buyer->debit, if you pass the card URI instead of the account URI an error is generated instead of an exception.

@bninja
Copy link
Contributor

bninja commented Dec 16, 2012

@oppenheimer do you mean this func: https://github.com/balanced/balanced-php/blob/master/src/Balanced/Account.php#L92 ? that doesnt take an account.

@oppenheimer
Copy link
Author

Andrew

If I do

$buyer = Balanced\Account::get($uri);

with the $uri = to the credit card, it does not generate an exception.
Then if I do

$buyer->debit(5000);

I get an error and not an exception.

Instead for the first statement, I should have used the URI = to the
account.

Gordon

On Sun, Dec 16, 2012 at 2:47 PM, andrew [email protected] wrote:

@oppenheimer https://github.com/oppenheimer do you mean this func:
https://github.com/balanced/balanced-php/blob/master/src/Balanced/Account.php#L92? that doesnt take an account.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-11421890.

@bninja
Copy link
Contributor

bninja commented Dec 17, 2012

@oppenheimer thanks for the clarification, will investigate detecting that in get

@ghost ghost assigned bninja Dec 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants