Bitcoin Forum

Economy => Marketplace => Topic started by: kiba on December 18, 2010, 04:17:18 AM



Title: MyBitcoin_SCI
Post by: kiba on December 18, 2010, 04:17:18 AM
Hey, I started a wiki page about MyBitcoin SCI. I was hoping to collaborate together on information on how to use MyBitcoin SCI.

https://en.bitcoin.it/wiki/MyBitcoin_SCI


Title: Re: MyBitcoin_SCI
Post by: The Madhatter on December 18, 2010, 07:52:32 AM
That's a good idea.

Hopefully it will make it easier for existing sites to at least add Bitcoin as an additional payment option.


Title: Re: MyBitcoin_SCI
Post by: Mahkul on December 18, 2010, 02:52:57 PM
That's great. Exactly what I need now!


Title: Re: MyBitcoin_SCI
Post by: kiba on December 18, 2010, 03:13:16 PM
Doh! I forgot to put in the links. Now I did.


Title: Re: MyBitcoin_SCI
Post by: kiba on December 21, 2010, 04:59:17 AM
Does anybody know how MyBitCoin SCI works?

I just use their form builder as a template for my purchasing form, but I have no idea about how MyBitcoin send data back to my web app for validation.


Title: Re: MyBitcoin_SCI
Post by: BioMike on December 21, 2010, 07:58:19 AM
Does anybody know how MyBitCoin SCI works?

I just use their form builder as a template for my purchasing form, but I have no idea about how MyBitcoin send data back to my web app for validation.

Yeah, I know how it works. Didn't have time to write things down yet.

<edit>
I've written down most steps here in Mousepad. Need to validate some steps. Then I'll post on the wiki.
</edit>


Title: Re: MyBitcoin_SCI
Post by: BioMike on December 21, 2010, 09:39:27 AM
Ok, the page is in the wiki.

If it helps you implementing MyBitcoin for your million dollar business , consider donating a few bitcoins to: 175dFDZhnYHwVE9f5NA3aHqwaJZEDmKQ8b


Title: Re: MyBitcoin_SCI
Post by: kiba on December 21, 2010, 03:25:52 PM
Thanks...but I don't use PHP... I'll have to decipher which part is necessary and which is not.


Title: Re: MyBitcoin_SCI
Post by: BioMike on December 21, 2010, 03:58:05 PM
Thanks...but I don't use PHP... I'll have to decipher which part is necessary and which is not.

The receipt receives a normal HTTP POST response that you have to catch and "decypher". The lib isn't that big, so you should be able to rewrite it in your language of choice.


Title: Re: MyBitcoin_SCI
Post by: kiba on December 21, 2010, 05:38:43 PM
Yeah, that should be more generalized beyond PHP.


Title: Re: MyBitcoin_SCI
Post by: semyazza on December 24, 2010, 01:34:08 AM
Hello Everyone,
Here is some Python code that I hacked together that I thought I would share regarding the MyBitcoin_SCI. I have not included all the code, error checking and other misc things are missing, but this should be enough to get some started. I will share the PGP verification code once it is completed and other additions as they are made.

License:http://www.gnu.org/licenses/gpl-3.0.txt


Title: Re: MyBitcoin_SCI
Post by: The Madhatter on December 24, 2010, 07:12:36 PM
Sweet! The wiki looks nice so far!

A couple of suggestions:

1. You should mention that the timestamps returned by mybitcoin are in UTC. This one had me a tad stumped at first. I store all of my date and time fields in my local timezone.

2. You may want to document the background URI encryptor. It's a new feature that was implemented in the latest mbc-toolkit. You can post your URI in the background and the SCI will return the encrypted version of the URI. I ended up using it on Bitcoin2CC (http://www.bitcoin2cc.com) to stop people who were trying to cheat my price calculator. It works perfectly. I wish other systems like LR had this feature.

3. You might want to mention the Bitcoin payment forward feature. Paranoid people (like myself) don't trust others with their coins. Mentioning how to setup forwarding might be a good idea.



Title: Re: MyBitcoin_SCI
Post by: BioMike on December 27, 2010, 11:06:52 AM
Sweet! The wiki looks nice so far!

A couple of suggestions:

1. You should mention that the timestamps returned by mybitcoin are in UTC. This one had me a tad stumped at first. I store all of my date and time fields in my local timezone.

2. You may want to document the background URI encryptor. It's a new feature that was implemented in the latest mbc-toolkit. You can post your URI in the background and the SCI will return the encrypted version of the URI. I ended up using it on Bitcoin2CC (http://www.bitcoin2cc.com) to stop people who were trying to cheat my price calculator. It works perfectly. I wish other systems like LR had this feature.

3. You might want to mention the Bitcoin payment forward feature. Paranoid people (like myself) don't trust others with their coins. Mentioning how to setup forwarding might be a good idea.

Thank you for the suggestions. You could also update the wiki yourself. ;) But I'll do it later if you don't have the time.


Title: Re: MyBitcoin_SCI
Post by: jgarzik on December 27, 2010, 03:32:08 PM
2. You may want to document the background URI encryptor. It's a new feature that was implemented in the latest mbc-toolkit. You can post your URI in the background and the SCI will return the encrypted version of the URI. I ended up using it on Bitcoin2CC (http://www.bitcoin2cc.com) to stop people who were trying to cheat my price calculator. It works perfectly. I wish other systems like LR had this feature.

Pecunix and GlobalDigitalPay have a feature that permits validation of the input form.  You hash the input fields, plus an API secret key.  Totally eliminates tampering.

I've long wished Liberty Reserve had a similar feature.


Title: Re: MyBitcoin_SCI
Post by: wnetwork on February 01, 2011, 09:58:35 PM
Hey, I started a wiki page about MyBitcoin SCI. I was hoping to collaborate together on information on how to use MyBitcoin SCI.

https://en.bitcoin.it/wiki/MyBitcoin_SCI

Looking at https://en.bitcoin.it/wiki/MyBitcoin_SCI - Table of Keys & Values.
It would be good idea add actual keys as shown below.

Code:
amount
currency
payee_bcaddr
note
baggage
payee_name
success_url
cancel_url
and so on....

Anyone know 'SCI Payer' and 'SCI Transaction Number'? My automatic download store won't process orders without transaction/batch #.


Title: Re: MyBitcoin_SCI
Post by: BioMike on February 02, 2011, 06:06:48 AM
Looking at https://en.bitcoin.it/wiki/MyBitcoin_SCI - Table of Keys & Values.
It would be good idea add actual keys as shown below.

Code:
amount
currency
payee_bcaddr
note
baggage
payee_name
success_url
cancel_url
and so on....

Anyone know 'SCI Payer' and 'SCI Transaction Number'? My automatic download store won't process orders without transaction/batch #.

Those things are part of the 1.2 interface (page does still reflect the 1.1 interface).
SCI Payer is determined by MyBitcoin (depending on how the person pays).
SCI Transaction Number is also determined by  Bitcoin (it is the number of the financial transaction).

If you need your own numbers/data included encode them in the baggage field.