Beginner question: https://developers.dwolla.com/guides/offsite-gateway/direct-submit.html


(Karin Powell) #1

To the best of my knowledge, I have followed the directions on https://developers.dwolla.com/guides/offsite-gateway/direct-submit.html.

I am using my own redirect value, and from my account, my own key and my own secret, yet I still only get back the error: “Invalid application credentials.”

When trying a post to my sandbox application, I made certain that the sandbox POST was going to https://uat.dwolla.com/payment/pay and that the form field ‘test’ said ‘true’. I also made certain that my key and secret were my sandbox application key and secret.

When I posted to my real app, I made certain the POST was going to “https://www.dwolla.com/payment/pay” and that the form field ‘test’ said ‘false’. I also made certain I was using my production key and secret.

YET… even after all that carefulness I get the Invalid application credential error.

Question: Is there something that the directions on that screen assume (something not stated in the directions) that I need to add to my code?

I feel like I’m climbing uphill… :mountain_bicyclist:
#######################################


(Spencer Hunter) #2

Hi @KarinDPowell, If you’re looking into the Direct form submit option then I’d recommend checking out the forum thread below. If you’re POSTing to https://uat.dwolla.com/payment/pay then you’ll want to use credentials obtained from our Sandbox environment. https://uat.dowlla.com/applications. Feel free to omit the test parameter as it’s not needed when testing in our Sandbox environment!
Help! PHP Developers need a “simple” 2 page checkout dwolla example


(Karin Powell) #3

I WAS using his code… but little by little I whittled at it and if you can believe this… when I make the orderid value “999997” (as I was during testing) IT FAILS. ???

<input id="orderid" name="orderid" type="hidden" value="999997" />

BUT THIS WORKS:

<input id="orderid" name="orderid" type="hidden" value="123456" />

Go figure. Is 999997 not allowed? I’m scratching my head.

OKAY —> NEVER MIND!!! IGNORE ME :slight_smile: I forgot to change the orderid in the signature-maker to match the one in the form. Problem solved.