Bitcoin Forum
May 11, 2024, 12:48:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitmunchies engineering update: checkout improvements and Minimal accounts  (Read 1241 times)
bearbones (OP)
Sr. Member
****
Offline Offline

Activity: 316
Merit: 250



View Profile WWW
May 19, 2011, 06:43:15 PM
 #1

My bitcoind server has been experiencing some connectivity issues.  This is why bitmunchies has been slow, and json throws an error on the checkout page.  I have called Quest, and they're working on it.  I also wrote a modification to my cart which should prevent this in the future.  Unfortunately, it won't be of much use until Quest gets their shit together.  I will be releasing this with an update to the existing osc bitcoin module instead of publishing a separate module.  They beat me to it.  Smiley

I disabled all requirements aside from email and password on the signup page, and allow valid, generic replacements.  This took me a couple of hours, and resulted in an arrangement I call 'Minimal Accounts.'  A brief explanation can be found here: http://www.bitmunchies.com/minimalaccounts.php.

On a side note: Why are the existing oscommerce contributions to the guest checkout issue so damn complicated?  I tried both this and this.  After hours of debugging, neither worked.  There must be a reason why they didn't take the simpler approach.  If anyone sees a problem with the Minimal Accounts system, or experiences trouble, please let me know!

Feed Ze Birds Pay and get paid for tweets
Coinapult Send Bitcoins easily over email or text message
1715388498
Hero Member
*
Offline Offline

Posts: 1715388498

View Profile Personal Message (Offline)

Ignore
1715388498
Reply with quote  #2

1715388498
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715388498
Hero Member
*
Offline Offline

Posts: 1715388498

View Profile Personal Message (Offline)

Ignore
1715388498
Reply with quote  #2

1715388498
Report to moderator
1715388498
Hero Member
*
Offline Offline

Posts: 1715388498

View Profile Personal Message (Offline)

Ignore
1715388498
Reply with quote  #2

1715388498
Report to moderator
bearbones (OP)
Sr. Member
****
Offline Offline

Activity: 316
Merit: 250



View Profile WWW
May 19, 2011, 07:34:46 PM
 #2

I also wrote a modification to my cart which should prevent this in the future.  Unfortunately, it won't be of much use until Quest gets their shit together.  I will be releasing this with an update to the existing osc bitcoin module instead of publishing a separate module.  They beat me to it.  Smiley

Further details on this, for the immediately curious:

created a table in the DB linking order ids to unique addresses
A cron job populates this table with addresses but does not assign orders
At checkout, instead of querying bitcoind for a new address, it pulls one out of the queue, and assigns its order number
call setaccount(), though if this fails, it is no biggie.  The address is already linked in oscommerce.

This avoids any lag caused by connectivity issues between bitcoind server and php server (or other bitcoind-related issues).

Feed Ze Birds Pay and get paid for tweets
Coinapult Send Bitcoins easily over email or text message
TehZomB
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
May 19, 2011, 10:29:20 PM
 #3

Sounds great! Love the service - keep up the good work.
Gabriel Beal
Full Member
***
Offline Offline

Activity: 210
Merit: 100


Fezzik, tear his arms off.


View Profile WWW
May 22, 2011, 02:45:20 PM
 #4

I also wrote a modification to my cart which should prevent this in the future.  Unfortunately, it won't be of much use until Quest gets their shit together.  I will be releasing this with an update to the existing osc bitcoin module instead of publishing a separate module.  They beat me to it.  Smiley

Further details on this, for the immediately curious:

created a table in the DB linking order ids to unique addresses
A cron job populates this table with addresses but does not assign orders
At checkout, instead of querying bitcoind for a new address, it pulls one out of the queue, and assigns its order number
call setaccount(), though if this fails, it is no biggie.  The address is already linked in oscommerce.

This avoids any lag caused by connectivity issues between bitcoind server and php server (or other bitcoind-related issues).

That's good stuff.  This is why I think we need a bitcoin-business organization to specifically share this kind of thing.  Maybe we could just start a sub-forum.

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!