Bitcoin Forum
May 07, 2024, 04:00:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: this-wallet - Open Source code for a Coinbase wallet  (Read 986 times)
Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
April 19, 2014, 08:18:46 AM
 #1

Coinbase has an awesome API, and it is quite easy to integrate onto any website. There are some features such as creating a widget with a user entered price, obtaining withdrawal address, validation of the address, etc which require certain steps which are are not 'pick-up' and go.

Here is some Ajax/ PHP code for the same.

It allows the user to easily modify security details.
Comprises of
  coinbase-php library - for the button response code function
  phpcoinaddress library - for some random number functions. I did want to use this to validate addresses as well, but not very accurate, hence the additional layer of blockchain.info
  bootstrap - for modals and nice curves Smiley
  jquery of course
  jquery ui

It is quite easy to get started.

The payment comes into the application and data is received back into the callback file which writes the mysql database. Security validation needs to be added to the callback file. Once the payment is received, a script checks the database and then can redirect the user to any part of your application which requires the payment.

It is running across few live implements. Demo is available at coinsecure.in/this-wallet.

Get the code here: https://github.com/bensonsamuel/this-wallet

1715054426
Hero Member
*
Offline Offline

Posts: 1715054426

View Profile Personal Message (Offline)

Ignore
1715054426
Reply with quote  #2

1715054426
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715054426
Hero Member
*
Offline Offline

Posts: 1715054426

View Profile Personal Message (Offline)

Ignore
1715054426
Reply with quote  #2

1715054426
Report to moderator
1715054426
Hero Member
*
Offline Offline

Posts: 1715054426

View Profile Personal Message (Offline)

Ignore
1715054426
Reply with quote  #2

1715054426
Report to moderator
1715054426
Hero Member
*
Offline Offline

Posts: 1715054426

View Profile Personal Message (Offline)

Ignore
1715054426
Reply with quote  #2

1715054426
Report to moderator
Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
April 19, 2014, 08:22:13 AM
 #2

This project will continue as 'thisware'.
I will be adding more functionality, such as an API and merchant functions along with more security validation.
Will also add this-exchange and this-crowd-funder to the list over the next few months.

Contributors are welcome.

BitCoinDream
Legendary
*
Offline Offline

Activity: 2324
Merit: 1204

The revolution will be digital


View Profile
April 19, 2014, 08:50:29 AM
 #3

+1

Nice project...

Can it accept payments from web wallets too ?

Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
April 19, 2014, 08:52:30 AM
 #4

+1

Nice project...

Can it accept payments from web wallets too ?

Yep. that is why it requests for a withdrawal address, so it does not have to rely on offchain addresses.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!