Bitcoin Forum
July 25, 2017, 10:50:04 PM *
News: BIP91 seems stable: there's probably only slightly increased risk of confirmations disappearing. You should still prepare for Aug 1.
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: SCI MyBitcoin Curl Failure !  (Read 610 times)
Full Member
Offline Offline

Activity: 126

View Profile
June 14, 2011, 08:26:46 PM

i've got a problem with MyBitcoin SCI, i'm developing a bitcoin based website and i want to use Mybitcoin to manage my payments.
I can't get the Transaction Number, Transaction Amount, Payer..., i just get "Curl Failure !" in $response['SCI Code'].
I thought it was a problem with my hosting but no -> cURL is enabled and i've tested on others hostings.

I just want to check that my visitor has been sent the BTCs, i tried with cookies but if the visitor find the success url, he can cheat.

What to do ?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Hero Member
Offline Offline

Posts: 1501023004

View Profile Personal Message (Offline)

Reply with quote  #2

Report to moderator
Full Member
Offline Offline

Activity: 134

View Profile
July 11, 2011, 08:16:08 AM


You can still make use of cookies to track the user - even if they know what the success url is, it's just annoying if they try to break it by brute force.

This is what you do;

Compile a string with all the variables that you need to submit and what you require to process your transaction;

payee_name=My Name&

Encrypt this data before your send the data to MyBitcoin by using the sci-client library;


Now create a submit button and use [paypage-mbc.php] since you only want to use MyBitcoin

<form action="" method="post">
<input type="hidden" name="t" value="$result">
<input type="submit" value="Pay with MyBitcoin" />

The encrypted string will look something like;


For your info;

[paypage.php] will give the payer to option to choose either Bitcoin or MyBitcoin as payment option
[paypage-mbc.php] will allow the payer to only use MyBitcoin as payment option
[paypage-bc.php] will allow the payer to only use Bitcoin as payment option

Record everything you get back from the Mybitcoin server in your database or flat file with the sci-receipt handler.

Now you use the database information recorded to compare with the cookie information in the returning browser - if that match, then you have the same user. Just build in some sort of delay for just in case the MyBitcoin server is slow - not that I have experienced it in any way. If no data is found allow the page to refresh after two seconds to run the script again and if it fail again let the script send you an email with the details.

Also note that you have to send some baggage information or else you will get an error.

Hope this help you,


If for any insane reason you found this post helpful: Bit me a @ 1AvN36TvnWxkUYYBRckpRxyFcys5Z28bSB
Pages: [1]
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!