Bitcoin Forum
December 13, 2024, 07:30:03 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: this-wallet - Open Source code for a Coinbase wallet  (Read 1003 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

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: 2394
Merit: 1216

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!