Bitcoin Forum
May 03, 2024, 10:54:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Javascript currency conversion tool for Bitcoin merchants  (Read 653 times)
litehacker (OP)
Member
**
Offline Offline

Activity: 67
Merit: 10


View Profile
February 17, 2013, 09:50:56 PM
 #1

Hello everyone,

I recently added BitPay as a payment option to my website.
However I didn't have the ability to easily convert all of my USD prices to Bitcoin automatically.

As a result, I've now built a multiple currency, auto detecting, library which allows you to easily convert your prices to Bitcoin to display to the user quickly.
You can check it out here:
http://www.veniaminilmer.com/jsbitconv

hi
1714733688
Hero Member
*
Offline Offline

Posts: 1714733688

View Profile Personal Message (Offline)

Ignore
1714733688
Reply with quote  #2

1714733688
Report to moderator
1714733688
Hero Member
*
Offline Offline

Posts: 1714733688

View Profile Personal Message (Offline)

Ignore
1714733688
Reply with quote  #2

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

Posts: 1714733688

View Profile Personal Message (Offline)

Ignore
1714733688
Reply with quote  #2

1714733688
Report to moderator
1714733688
Hero Member
*
Offline Offline

Posts: 1714733688

View Profile Personal Message (Offline)

Ignore
1714733688
Reply with quote  #2

1714733688
Report to moderator
franky1
Legendary
*
Offline Offline

Activity: 4214
Merit: 4458



View Profile
February 17, 2013, 11:48:29 PM
Last edit: February 18, 2013, 12:04:44 AM by franky1
 #2

edit: original comment no longer required. seems he has now got thngs sorted

I DO NOT TRADE OR ACT AS ESCROW ON THIS FORUM EVER.
Please do your own research & respect what is written here as both opinion & information gleaned from experience. many people replying with insults but no on-topic content substance, automatically are 'facepalmed' and yawned at
litehacker (OP)
Member
**
Offline Offline

Activity: 67
Merit: 10


View Profile
February 18, 2013, 12:02:22 AM
 #3

javascript itself doesn like pulling webcontent from remote servers (price ticker api's). the closest you can get simply is by researching AJAX

http://w3schools.com/ajax/ajax_example.asp

I am not pulling remote server content with javascript. That is against the same origin policy. Plus if it were to keep pinging the bitcoincharts API every time someone views a merchant page, bitcoincharts wouldn't be very happy.

The conversion rates are cached. Makes the javascript calls much faster.

hi
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!