barnjamin/dwolla — Issue #2: Issues following Documentation...
Author: cvarick
Created: 2012-02-13 07:55:13+00:00
State: open

Ben,

First off thank you very much for the awesome class!

I am new to Dwolla and their APIs, but I found your class to be the most impressive solution to help streamline functions within their platform.

I was attempting to follow your documentation today to test out your class, but I seem to be getting an error on the "redirect page"

Hoping you have the time to tell me what I did wrong utilizing your class.

First page to setup redirect:
[code]
$dwolla = new dwolla();
$url = $dwolla->auth_url();
header('Location: '.$url ) ;
[/code]

Second page (redirected page):
[code]
$dowlla = new dwolla();
$dwolla->get_oauth_token($_GET['code']);
[/code]

[error]
Fatal error: Call to a member function get_oauth_token() on a non-object in
[/error]

Hoping you can help... thanks in advance!