Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment Gateway on orders table #35

Closed
bretto36 opened this issue Mar 13, 2016 · 4 comments
Closed

Payment Gateway on orders table #35

bretto36 opened this issue Mar 13, 2016 · 4 comments

Comments

@bretto36
Copy link

Hi @daveearley I haven't quite figured out migrations yet on laravel. I want to start implementing a feature for adding multuiple payment gateways, I feel the first thing that needs to be done is add a payment gateway colum to the orders table. That way when we want to issue a refund using a different payment gateway we can.

Fields i think should be added
payment_gateway - string (default to 'stripe')
payment_reference - string (default to empty) - actually just say trasnaction_id so nevermind this one.

ok so it's just the one column. Any chance you could add the migration for that

@bretto36
Copy link
Author

Also, maybe a payment methods table would be good.

Table details
code
name
authorisation details (possibly just a text field that we store a serialised array in, instead of having to do a column against the account table)

@daveearley
Copy link
Contributor

There's another project built using Laravel which uses Omnipay for payments, they appear to have done it quite well. From what I can see they have a Payment Gateway table in the DB, as you suggested above. You can have a look here: https://github.com/invoiceninja/invoiceninja

Following their approach could be a good idea.

@bretto36
Copy link
Author

Yeah, i've gone and looked at invoiceninja. Quite well done. I might use that for my own invoicing system instead of the one i currently pay for.

I still can't figure out where it adds the gateway table in the migrations.

@daveearley
Copy link
Contributor

It's a nice platform alright. The DB migrations should be in the /database/migrations directory. I'm on a phone now so can't link it unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants