Bitcoin Forum
June 25, 2017, 12:21:51 PM *
News: Latest stable version of Bitcoin Core: 0.14.2  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: Looking for a PHP dev that can give me some Pseudo-code for Dwolla API [2BTC]  (Read 4504 times)
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
September 27, 2011, 12:41:37 AM
 #21

If i var dump the $client when I first connect i get this

object(SoapClient)#2 (2) { ["_soap_version"]=> int(1) ["sdl"]=> resource(6) of type (Unknown) }
Goat says: "Bitcoin is NOT Illegal in Thailand. There is no law against Bitcoin in Thailand!"
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1498393311
Hero Member
*
Offline Offline

Posts: 1498393311

View Profile Personal Message (Offline)

Ignore
1498393311
Reply with quote  #2

1498393311
Report to moderator
1498393311
Hero Member
*
Offline Offline

Posts: 1498393311

View Profile Personal Message (Offline)

Ignore
1498393311
Reply with quote  #2

1498393311
Report to moderator
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
September 27, 2011, 02:09:05 AM
 #22

I tried the following code aswell got a diff error

Code:

//$client = new SoapClient("");
$client = new SoapClient(NULL,
        array(
        "location" => "https://www.dwolla.com/api/API.svc?wsdl",
        "uri"      => "urn:xmethods-delayed-quotes",
        "style"    => SOAP_RPC,
        "use"      => SOAP_ENCODED
           ));
var_dump($client);
$params = array( new SoapParam( 'ApiKey',$apiKey),
new SoapParam('ApiCode', $apiCode),
new SoapParam('Amount' , $amount),
new SoapParam('Description', $description),
new SoapParam('DestinationID',$customerId)
);


try{
$client->__soapCall(serialize("RequestPaymentKey"), $params);
}catch(Exception $e){
echo $e;
echo "ERROR";
}

got the example from here: http://devzone.zend.com/article/689#Heading4


my error is this:
Quote
object(SoapClient)#2 (5) { ["uri"]=> string(27) "urn:xmethods-delayed-quotes" ["style"]=> int(1) ["use"]=> int(1) ["location"]=> string(39) "https://www.dwolla.com/api/API.svc?wsdl" ["_soap_version"]=> int(1) } SoapFault exception: [HTTP] Bad Request in /home/swiftbitcoins/purchase_order.php:38 Stack trace: #0 [internal function]: SoapClient->__doRequest('__soapCall('s:17:"RequestPa...', Array) #2 {main}ERROR

Is there somthing I'm not understanding about soap?

I will be willing to throw in 1 BTC to the person who can get a working code going....
nhodges
Sr. Member
****
Offline Offline

Activity: 308


View Profile
September 27, 2011, 07:49:19 AM
 #23

Updated my StackOverflow answer with a working snippet for you. You might want to refresh your API credentials, too, since you publicized them here.

http://stackoverflow.com/questions/7543582/integrating-dwolla-with-php-with-their-api/7553502#7553502

mjcmurfy
Sr. Member
****
Offline Offline

Activity: 336



View Profile WWW
September 27, 2011, 08:05:37 AM
 #24

I tried the following code aswell got a diff error

Code:

//$client = new SoapClient("");
$client = new SoapClient(NULL,
        array(
        "location" => "https://www.dwolla.com/api/API.svc?wsdl",
        "uri"      => "urn:xmethods-delayed-quotes",
        "style"    => SOAP_RPC,
        "use"      => SOAP_ENCODED
           ));
var_dump($client);
$params = array( new SoapParam( 'ApiKey',$apiKey),
new SoapParam('ApiCode', $apiCode),
new SoapParam('Amount' , $amount),
new SoapParam('Description', $description),
new SoapParam('DestinationID',$customerId)
);


try{
$client->__soapCall(serialize("RequestPaymentKey"), $params);
}catch(Exception $e){
echo $e;
echo "ERROR";
}

got the example from here: http://devzone.zend.com/article/689#Heading4


my error is this:
Quote
object(SoapClient)#2 (5) { ["uri"]=> string(27) "urn:xmethods-delayed-quotes" ["style"]=> int(1) ["use"]=> int(1) ["location"]=> string(39) "https://www.dwolla.com/api/API.svc?wsdl" ["_soap_version"]=> int(1) } SoapFault exception: [HTTP] Bad Request in /home/swiftbitcoins/purchase_order.php:38 Stack trace: #0 [internal function]: SoapClient->__doRequest('__soapCall('s:17:"RequestPa...', Array) #2 {main}ERROR

Is there somthing I'm not understanding about soap?

I will be willing to throw in 1 BTC to the person who can get a working code going....

To be honest, that code you derived from the example looks really messy and unlikely to work. I think there is something none of us is understanding about soap! LOL. It's probably something to do with formatting the header correctly, which I have no idea how to do. I'm not a coder by trade, just have a lot of experience with PHP.

nhodges code on stackoverflow might work, you could give that a shot.

But if you are still having trouble, take a look at using their REST API instead of their SOAP API. It uses simpler HTTP GET and POST methods, rather than the complicated SOAP protocol. I believe it also encodes responses in JSON format, so that should be familiar to most devs here. I believe it is still sort of in beta though. Their SOAP API is the bigger brother.

Links for more info:
http://www.dwolla.org/d/showthread.php?2-REST-API
http://www.dwolla.org/d/showthread.php?690-Dwolla-GRID-Start-Here-to-Access-the-GRID

http://www.bitcointorrentz.com/images/bct_button_117_30.png - BitCoinTorrentz.com: High-speed HTTP torrent downloads. 0.05 btc/gb. Up to 50% discount with free membership!
mjcmurfy
Sr. Member
****
Offline Offline

Activity: 336



View Profile WWW
September 27, 2011, 08:23:03 AM
 #25

BTW, just scanned your avatar with my smartphone and realized your QR code is encoded with the link to your website.
Thats pretty awesome.

http://www.bitcointorrentz.com/images/bct_button_117_30.png - BitCoinTorrentz.com: High-speed HTTP torrent downloads. 0.05 btc/gb. Up to 50% discount with free membership!
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
September 27, 2011, 03:12:02 PM
 #26

Glad you like the QR-Code, I got it from a QR-Code generator on-line somewhere.

Looks like Nuri won the bounty, I'm going to hook up Mjcmurfy with 1 BTC for being really helpful and getting the ball rolling....

Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
September 27, 2011, 03:25:06 PM
 #27

Give me a few hours before bounties are sent guys I'm kind of behind this project. Thanks for your patience
nhodges
Sr. Member
****
Offline Offline

Activity: 308


View Profile
September 27, 2011, 07:48:26 PM
 #28

Give me a few hours before bounties are sent guys I'm kind of behind this project. Thanks for your patience

No problem, I'm glad we got through the issue! Tongue

Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
September 27, 2011, 07:57:47 PM
 #29

Give me a few hours before bounties are sent guys I'm kind of behind this project. Thanks for your patience

No problem, I'm glad we got through the issue! Tongue

I meant to say nhodges won bounty  Grin
I got your bitcoin address with your forum identity!

It must be a dwolla problem because I have $4 in my dwolla account and It wont let me send money to my self when i use the real API and not the test one.
I get the following error

Quote
object(stdClass)#3 (1) { ["SendMoneyResult"]=> bool(false) }
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
September 27, 2011, 08:16:07 PM
 #30

Dwolla Devs are telling me SOAP API and OAuth API are deprecated so I guess its back to the REST API where i started.... darn it....
captainteemo
Full Member
***
Offline Offline

Activity: 145


View Profile
September 28, 2011, 01:39:06 AM
 #31

Dwolla Devs are telling me SOAP API and OAuth API are deprecated so I guess its back to the REST API where i started.... darn it....
rest owns, soap is the worst trainwreck i've ever seen

Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
September 28, 2011, 03:47:22 AM
 #32

where were you two days ago.... Tongue
captainteemo
Full Member
***
Offline Offline

Activity: 145


View Profile
September 28, 2011, 04:15:29 AM
 #33

where were you two days ago.... Tongue
passed out drunk in the london underground

mjcmurfy
Sr. Member
****
Offline Offline

Activity: 336



View Profile WWW
September 28, 2011, 08:27:08 AM
 #34

Glad you like the QR-Code, I got it from a QR-Code generator on-line somewhere.

Looks like Nuri won the bounty, I'm going to hook up Mjcmurfy with 1 BTC for being really helpful and getting the ball rolling....

I wasn't in in for the money mate!
Glad you got it all sorted out.

http://www.bitcointorrentz.com/images/bct_button_117_30.png - BitCoinTorrentz.com: High-speed HTTP torrent downloads. 0.05 btc/gb. Up to 50% discount with free membership!
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
September 29, 2011, 09:10:52 AM
 #35

You da man mjcmurfy!

http://trebekbeatz.ytmnd.com/
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!