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) }
|
|
|
Wow what a great post, very enlightening and explanatory.
I like how you noted that serving others seems like an act of "righteousness" and self sacrificing of your time when this is far from the truth, as the server/giver gets ultimate satisfaction of it all in the end leading to ut-right-most-self-ish-ness.
As for me and my house I live for the Truth, and the world is my House. I find it already difficult to properly communicate the truth and I'ts very easy even if you were truthfull 100% of the time to be still mis-understood, I can only imagine how difficult it is for the lairs, cheaters, and the scammers....
|
|
|
I attempted to use the associative array, and made sure all the variables match exactly from any spelling differences. Still getting this error: SoapFault exception: [a:DeserializationFailed] The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'RequestPaymentKey'. End element 'Body' from namespace ' http://schemas.xmlsoap.org/soap/envelope/' expected. Found element 'param1' from namespace ''. Line 2, position 158. in /home/swiftbitcoins/purchase_order.php:31 Stack trace: #0 /home/swiftbitcoins/purchase_order.php(31): SoapClient->__soapCall('RequestPaymentK...', Array) #1 {main}ERROR using this code $client = new SoapClient("https://www.dwolla.com/api/TestAPI.svc?wsdl"); $params = array( 'ApiKey' => $apiKey, 'ApiCode' => $apiCode, 'Amount' => $amount, 'Description' => $description, 'CustomerID' => $customerId );
try{ $client->__soapCall("RequestPaymentKey", $params); }catch(Exception $e){ echo $e; echo "ERROR"; } Just so we are clear ApiCode is really the "Secret" key right?
|
|
|
Is your amount supposed to be a string or int?
I don't think (int) can accept decimals? $amount=123; Why do you have int, then? ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) Becuase I previously tryed a varchar but doing the value in quotes. I thought you ment like forceing php to do int like this $amount = (int) 123; If i do that I wont accept decimals (as far as i know)
|
|
|
ITS NOT WORKING!?! ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fs3.postimage.org%2F1stivdy9w%2Fitsnotworking.jpg&t=663&c=C80kdnk1lgtvxQ) Infact I think she is sticking her tounge out!!! THEY LIKE IT OMG!!!
|
|
|
there pulling closer... I can feel this feeling that says "What is snookie doing this week?"
I need help guys..!>!>!?!?!? OMG what do i do!?
Where is the jersey shore spray!?
|
|
|
Is your amount supposed to be a string or int?
I don't think (int) can accept decimals?
|
|
|
I voted "Same as now" as there are pretty big walls in the $5-$6 range. But I am not an active trader so it could be that MtGox just looks like it has huge walls in my perspective
|
|
|
I think it's not picking up the parameters correctly as no matter if I try it my way or your way it just gives me this error about Deserlization or somthing of the sort.... Fatal error: Uncaught SoapFault exception: [a:DeserializationFailed] The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'RequestPaymentKey'. End element 'Body' from namespace 'http://schemas.xmlsoap.org/soap/envelope/' expected. Found element 'param1' from namespace ''. Line 2, position 158. in /home/swiftbitcoins/purchase_order.php:21 Stack trace: #0 /home/swiftbitcoins/purchase_order.php(21): SoapClient->__soapCall('RequestPaymentK...', Array) #1 {main} thrown in /home/swiftbitcoins/purchase_order.php on line 21
Here is the code I use slightly modified you for got the "CustomerId" value <?php $apiKey='0AwevY8CPVHiT2wxoxIl'; $apiCode='oDz1XJ1bjbaTk0i5RMcoEq'; $description='Testing CIB Testing';
$amount=123;
$customerId = "812-504-6527";
$client = new SoapClient("https://www.dwolla.com/api/TestAPI.svc?wsdl"); $client->__soapCall("RequestPaymentKey", array($apiKey, $apiCode, $amount, $description, $customerId));
//RequestPaymentKey returns a boolean: true if the request was successfully processed, False or exception otherwise
if($client) { //function executed succesfully } else { //it didn't }
?>
|
|
|
Thanks a bunch i will report back with my results you should give me BTC address just for the effort already!
|
|
|
TL:DR I think any fallacy is overly used in forums and online debates... heck they are over used in real life all the time for people to use on each other. Educate your self today and memorize these fallacies! http://en.wikipedia.org/wiki/List_of_fallacies
|
|
|
excellent documentation, I didn't learn about SOAP until like just now although I've heard of it, i think I'm missing something here..... take a look at my format <?php $client = new SoapClient("https://www.dwolla.com/api/API.svc?wsdl"); //Attempt to buy something with dwolla form $client->RequestPaymentKey("0Aw5gdfgfdgdfgdfgJjfsjdfsdfsdfsdfsfsfsfsdfgfgdj2NA+r0QUFnTeofqvRPl", "oDzdfgdfgdrgdfvsdfwefvtdbyndgsjfgdgfdghjgklgVwga7qbWoL", "1.50", "Testing testing testing", "812-504-6527"); print_r($client);
var_dump($client->__getFunctions());
?> oh yeah error is like this Fatal error: Uncaught SoapFault exception: [a:DeserializationFailed] The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'RequestPaymentKey'. End element 'Body' from namespace ' http://schemas.xmlsoap.org/soap/envelope/' expected. Found element 'param1' from namespace ''. Line 2, position 158. in /home/swiftbitcoins/purchase_order.php:16 Stack trace: #0 /home/swiftbitcoins/purchase_order.php(16): SoapClient->__call('RequestPaymentK...', Array) #1 /home/swiftbitcoins/purchase_order.php(16): SoapClient->RequestPaymentKey('s:50:"0AwevY8CP...', 'oDz1XJ1bjbaTk0i...', '1.50', 'Testing testing...', '812-504-6527') #2 {main} thrown in /home/swiftbitcoins/purchase_order.php on line 16
|
|
|
Bounty is still up for grabs if someone wants to assist in writing some psuedo-code
|
|
|
excellent documentation, I didn't learn about SOAP until like just now although I've heard of it, i think I'm missing something here..... take a look at my format <?php $client = new SoapClient("https://www.dwolla.com/api/API.svc?wsdl"); //Attempt to buy something with dwolla form $client->RequestPaymentKey("0Aw5gdfgfdgdfgdfgJjfsjdfsdfsdfsdfsfsfsfsdfgfgdj2NA+r0QUFnTeofqvRPl", "oDzdfgdfgdrgdfvsdfwefvtdbyndgsjfgdgfdghjgklgVwga7qbWoL", "1.50", "Testing testing testing", "812-504-6527"); print_r($client);
var_dump($client->__getFunctions());
?>
|
|
|
Okay I'm having the most difficult time with Dwolla API + PHP You can find more of my delimma over at overstack exchange http://stackoverflow.com/questions/7543582/integrating-dwolla-with-php-with-their-apiI will accommodate you with your answer just post your Bitcoin address right under you answer and I will give you 2 BTC to give me an easy to understand Pseduo code or a link to a working library! I'm a trust worthy source as I run the website CheaperInBitcoins.com and done quite a few of successful purchases!
|
|
|
Well buttcoin if you werent too busy trolling youd realise that he already thanked somebody for receving a bitcoin in donation. If this wasnt the addressed use for the donation youd think the OP would at least report the donating address used if he wasnt a scaer.
Why should he? He already thanked someone for donating. What's the point of saying you've received a donation if it wasn't true? I don't get it. Ah, by the way, I also could use a small help! ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) 12A9xBvwZMbDCyszohAki3J721HsCnNbML To get rep? Manipulation of one of the key psychological principles of influence --> Social proof. If no-one is seen to be donating then the OP is at risk of falling casualty to the bystander effect (everyone conforms with each other and does nothing). Contrary, if others see that people are donating, they too can be influenced by that and feel like chipping in for support. Wikipedia entries for bystander effect and social proof will explain it better. Xenland was correct to apply the label of scammer to OP, and buttcoin was a bonehead for applying the label 'bonehead' to Xenland. Gotta love wikipedia! ![Cheesy](https://bitcointalk.org/Smileys/default/cheesy.gif)
|
|
|
My mistake its actually $8/month I was thinking of my previous providers billing http://www.nextiva.com/products/connect.htmlUPDATE: cheaper In Bitcoins will be adding routers and some books within this week keep checking!
|
|
|
|