Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: breandan81 on February 13, 2011, 12:27:48 AM



Title: MyBitCoin SCI
Post by: breandan81 on February 13, 2011, 12:27:48 AM
I'm having a spot of trouble with the MBC SCI.  For some reason my receipt handler script does not appear to be being called at all, I had written my own but I am currently back to just trying to get the example one to work.  I can write to /tmp from php scripts.  Is there an easy way to verify what the issue is?  is the receipt handler script supposed to be called any time when coins are sent to my MBC account, or is there something I have to do to make sure it knows that it is a payment button?


Title: Re: MyBitCoin SCI
Post by: breandan81 on February 13, 2011, 04:05:03 AM
Well if i can't get it working with mybitcoin, I'll try to rewrite it to use a bitcoind running locally on the server.  That seemed more complicated but at least that way I have complete control over what's happening.  It might be less suitable for some shared hosting plans that way too.  I'm also not sure how long it will take for transactions to show up, if I look for them without confirmations it should be fairly quick though right?  Maybe I'll need a cron job to look for new ones and update the database when they show up...


Title: Re: MyBitCoin SCI
Post by: BioMike on February 13, 2011, 12:49:51 PM
Is your receipt script reachable (firewall/NAT)?
Did you setup the merchant data in your MBC account?


Title: Re: MyBitCoin SCI
Post by: breandan81 on February 13, 2011, 07:04:11 PM
SCI is enabled in the account and the receipt script URL is there, if I copy/paste the URL into the browser it at least runs, it gives an error of course since no post data then, but it runs.  could there be a reason it's not reachable for MBC but it is from a normal browser?


Title: Re: MyBitCoin SCI
Post by: BioMike on February 13, 2011, 07:07:47 PM
Do you use the pgp/gpg interface, did you try to turn it off?

Do you see anything in your web server logs (that MBC calls the receipt script)?


Title: Re: MyBitCoin SCI
Post by: breandan81 on February 13, 2011, 10:34:19 PM
I have gpg turned on, I will try disabling it.


Title: Re: MyBitCoin SCI
Post by: breandan81 on February 13, 2011, 10:38:57 PM
Tried diabling, gpg, no difference.  which logs should I look at?


Title: Re: MyBitCoin SCI
Post by: breandan81 on February 13, 2011, 10:47:45 PM
ok, I looked at the access logs, and I see a POST from mybitcoin going to the script.  So it looks like it is trying to call it.  Why wouldn't the script get run?


Title: Re: MyBitCoin SCI
Post by: breandan81 on February 14, 2011, 12:31:03 AM
Ugh, I am so stupid.  The answer resulted when I tried to send a post from the commandline using curl and it returned an html snippet saying the page had been moved.  I was missing a www and didn't notice because it doesn't cause a problem when you type the address into a browser.  OK... well that's that problem solved.