User stores - how to setup in theory

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

anyone?

thx

Sounds like an opportunity to blaze a trail!

Norm

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…

On Wed, Dec 10, 2014 at 6:30 PM, Norm S.
[email protected]

On 11 December 2014 at 03:07, tom [email protected] 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

On Wed, Dec 10, 2014 at 7:07 PM, tom [email protected] 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 S. ------------------------ [email protected]

twitter: @hassan

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 J.

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

On Thu, Dec 11, 2014 at 10:01 AM, Hassan S. <

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