neil-s / mayballmarketplace

0 stars 0 forks source link

Payment integration #6

Open gfarrell opened 10 years ago

gfarrell commented 10 years ago

Let's go with Braintree as discussed. Look into integrating this with our user management.

Perhaps payments should just be attached to offers, not users? (well, implicit link to users via User hasMany Offer).

neil-s commented 10 years ago

I'm thinking on each sell offer, the moment a potential buyer clicks 'Accept' and then makes a payment, we set the field paidForBy = buyerUsername. Any sell offers with that field set are not shown on the listings page. If the deal doesn't go through in the end, we can refund the 5 pounds to that username and unset the field, which will result in the listing being shown again.

gfarrell commented 10 years ago

I disagree for two reasons.

On Monday, 24 February 2014 at 16:36, Neil Satra wrote:

I'm thinking on each sell offer, the moment a potential buyer clicks 'Accept' and then makes a payment, we set the field paidForBy = buyerUsername. Any sell offers with that field set are not shown on the listings page. If the deal doesn't go through in the end, we can refund the 5 pounds to that username and unset the field, which will result in the listing being shown again.

— Reply to this email directly or view it on GitHub (https://github.com/neil-s/mayballmarketplace/issues/6#issuecomment-35905329).