I had some API keys configured that I used with https://developers.dwolla.com/dev/pages/button#installation to have a button for a payment.
It worked 2 years ago, but checking it again it no longer works.
I thought maybe the older API broke, so I set up a new API access key with all permissions checked and tried using https://github.com/Dwolla/dwolla-php#set-your-own
However, in the most basic example I get the error “Array ( [Error] => Invalid application credentials. )”.
So it just seems like my old API keys are now broken, are so are new ones I make. Why would that old button not work to begin with?
I can’t figure out what’s going on here. I just want a simple checkout where people can enter an amount of money, checkout, and I get a callback to my server with the details.
The full code I’m using, after installing the PHP API via composer, is:
require 'vendor/autoload.php'; $Account = new Dwolla\Account(); $Account->settings->client_id = "Wi3QY8eVypOblunLeFW2GOLz9CGWOTmrmY8nmaT8dBd04...etc"; $Account->settings->client_secret = "e8H63ReJaYYEFwCMevxjMCAP1SxBIrmgq4pkyImhwofJn...etc"; $Account->settings->sandbox = true; print_r($Account->basic('812-121-7199'));
which prints the aforementioned “Array ( [Error] => Invalid application credentials. )” error.
That’s the code right from the github page, just with the require changed to load it from composer, and it’s not working for me.