Bitcoin Forum
December 06, 2016, 06:12:50 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: MyBitCoin SCI  (Read 1374 times)
breandan81
Member
**
Offline Offline

Activity: 82


View Profile
February 13, 2011, 12:27:48 AM
 #1

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?

Electronics and components at http://avrthing.com
1481047970
Hero Member
*
Offline Offline

Posts: 1481047970

View Profile Personal Message (Offline)

Ignore
1481047970
Reply with quote  #2

1481047970
Report to moderator
1481047970
Hero Member
*
Offline Offline

Posts: 1481047970

View Profile Personal Message (Offline)

Ignore
1481047970
Reply with quote  #2

1481047970
Report to moderator
1481047970
Hero Member
*
Offline Offline

Posts: 1481047970

View Profile Personal Message (Offline)

Ignore
1481047970
Reply with quote  #2

1481047970
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481047970
Hero Member
*
Offline Offline

Posts: 1481047970

View Profile Personal Message (Offline)

Ignore
1481047970
Reply with quote  #2

1481047970
Report to moderator
1481047970
Hero Member
*
Offline Offline

Posts: 1481047970

View Profile Personal Message (Offline)

Ignore
1481047970
Reply with quote  #2

1481047970
Report to moderator
breandan81
Member
**
Offline Offline

Activity: 82


View Profile
February 13, 2011, 04:05:03 AM
 #2

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...

Electronics and components at http://avrthing.com
BioMike
Legendary
*
Offline Offline

Activity: 1256


View Profile
February 13, 2011, 12:49:51 PM
 #3

Is your receipt script reachable (firewall/NAT)?
Did you setup the merchant data in your MBC account?
breandan81
Member
**
Offline Offline

Activity: 82


View Profile
February 13, 2011, 07:04:11 PM
 #4

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?

Electronics and components at http://avrthing.com
BioMike
Legendary
*
Offline Offline

Activity: 1256


View Profile
February 13, 2011, 07:07:47 PM
 #5

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)?
breandan81
Member
**
Offline Offline

Activity: 82


View Profile
February 13, 2011, 10:34:19 PM
 #6

I have gpg turned on, I will try disabling it.

Electronics and components at http://avrthing.com
breandan81
Member
**
Offline Offline

Activity: 82


View Profile
February 13, 2011, 10:38:57 PM
 #7

Tried diabling, gpg, no difference.  which logs should I look at?

Electronics and components at http://avrthing.com
breandan81
Member
**
Offline Offline

Activity: 82


View Profile
February 13, 2011, 10:47:45 PM
 #8

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?

Electronics and components at http://avrthing.com
breandan81
Member
**
Offline Offline

Activity: 82


View Profile
February 14, 2011, 12:31:03 AM
 #9

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.

Electronics and components at http://avrthing.com
Pages: [1]
  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!