user stores - how to setup in theory

54 views
Skip to first unread message

tom

unread,
Dec 5, 2014, 1:49:48 PM12/5/14
to Ruby on Rails: Talk
hi,

i have an rails app and users can pay to 'my' paypal account via active merchant.

now i want to expand and allow users to have their own store , but im not sure how to deal with the users - store payments, aka a users buys from another users 'store', how would i set this up?

any ideas welcome...


thx

tom

unread,
Dec 10, 2014, 4:57:30 PM12/10/14
to Ruby on Rails: Talk
anyone? 

thx

Norm Scherer

unread,
Dec 10, 2014, 6:31:21 PM12/10/14
to rubyonra...@googlegroups.com
Sounds like an opportunity to blaze a trail!

Norm
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMdmGnG-QmnDEvbYXVjaKGNHLJmjyD3TmanfmrQC4K89yg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

tom

unread,
Dec 10, 2014, 10:08:47 PM12/10/14
to Ruby on Rails: Talk
well, i do have store_id's and so on for my users, respectively the product_ids and so forth. what im not sure about is how to do the payments. i have my paypal-keys so users can check out on my store, but how would i offer that for the user-to-user scenario? would i just redirect them to their paypal or whatever payment gateway url? not sure...

Colin Law

unread,
Dec 11, 2014, 3:40:40 AM12/11/14
to rubyonra...@googlegroups.com
On 11 December 2014 at 03:07, tom <toma...@gmail.com> wrote:
> well, i do have store_id's and so on for my users, respectively the
> product_ids and so forth. what im not sure about is how to do the payments.
> i have my paypal-keys so users can check out on my store, but how would i
> offer that for the user-to-user scenario? would i just redirect them to
> their paypal or whatever payment gateway url? not sure...

You might find someone here who knows, but really this is not a rails
issue, it is a paypal issue, you might have more success asking
somewhere more relevant (don't know where though, sorry).

Colin
> https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMcibK1ORmwzQ%3DMkUK%2BQgFuXWQb%3D51q96X9ENXTTLPhEEg%40mail.gmail.com.

Hassan Schroeder

unread,
Dec 11, 2014, 10:01:56 AM12/11/14
to rubyonrails-talk
On Wed, Dec 10, 2014 at 7:07 PM, tom <toma...@gmail.com> wrote:

> i have my paypal-keys

OK. You've implemented a payment process using those.

What "in theory" is preventing you using that same process with the
"paypal-keys" of other people?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Matt Jones

unread,
Dec 12, 2014, 12:20:34 AM12/12/14
to rubyonra...@googlegroups.com


On Wednesday, 10 December 2014 21:08:47 UTC-6, der_tom wrote:
well, i do have store_id's and so on for my users, respectively the product_ids and so forth. what im not sure about is how to do the payments. i have my paypal-keys so users can check out on my store, but how would i offer that for the user-to-user scenario? would i just redirect them to their paypal or whatever payment gateway url? not sure...


Some processors offer a solution that to let you attach to other user's payment accounts securely - Stripe Connect is one such service: https://stripe.com/connect

Paypal may have something similar.

--Matt Jones

tom

unread,
Dec 12, 2014, 9:46:51 AM12/12/14
to Ruby on Rails: Talk
hi

nothing would prevent me from storing their keys, assuming they woudl give it. i was just wondering if i really need their keys or if their 'paypal-email address' would be enough to redirect the buyer to the right paypal store...or a specific url - again not sure.

thx all


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Ahsan Naqvi

unread,
Dec 13, 2014, 10:29:03 AM12/13/14
to rubyonra...@googlegroups.com
Hi Tom,

If I am understanding you correctly you are trying to build an ecommerce service. The software architecture will be different than the single store. In broad strokes you will need

A Store Model with attributes: Name, Username, Password Hash, Payment Processor, any other relevant information about store. Store will also have many  products, carts and orders

Update Product Model so that it belongs to Store by adding store_id attribute

Update Cart Model to belong to Store

Update Order Model to belong to Store

Add corresponding controllers and views for signing up and creating new stores.

Add admin controllers and admin views to allow store owners to CRUD products, orders etc.

Add mailers and other functionality helpful for store owners.

It will be an involved process, and you will discover and learn quite alot.

Another option would be to take the system you currently have and run its multiple instances for each store owner. You can add their payment processor and other unique information manually or write a script which will automate the process.

Good luck,
Ahsan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages