Bitcoin Forum
July 21, 2018, 02:27:20 PM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: SCI payment problem  (Read 1086 times)
Offline Offline

Activity: 1
Merit: 0

View Profile
July 08, 2011, 11:10:13 PM

Okay, so I'm sort of creating a wallet for my users. I need to keep track of their bitcoins on my server. To do so, I have one account containing everyones bitcoins, and their bitcoin amount is tracked on my website's databases.

So now I'm trying to make it so that when they withdraw from their wallet, it also subtracts from my websites databases. I do this with this code:

$result = mbc_spend($bitcoinAddy, floatval($withdrawAmount), "Thank you", "username=lulzy");

Everything is fine except for the baggage data. It's supposed to contain the username so that when receipt is called, I can subtract the correct amount of bitcoins from that users account. But for some reason, the baggage data receipt.php is receiving always returns as null.

I just tried the payment note, and that works perfectly. It seems as if the only data I'm not getting from mbc_post_process is the baggage data. Why is that? Will I have to stick with the payment note to keep track of the user?

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!