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

Feature/payment option interface #107

Merged
merged 3 commits into from
Dec 27, 2019

Conversation

Sharnw
Copy link
Contributor

@Sharnw Sharnw commented Dec 27, 2019

Changes:

  • Add PaymentOptionInterface contract for use in payment options

Notes:
Added all the methods in the cash-on-delivery payment option class (identifier, name, process, render, etc) to the interface. New methods are 'requiresAddress' and 'address' methods which are necessary to handle billing address attachment with most card payment gateways. Another method 'syncOrder' is used to sync a payment transaction record with an order.

I am working on a card payment module for 'Merchant Warrior' payment gateway and would prefer to get this merged in first so that we have the right groundwork for further payment options. Here is a link to the CardPayment class i am working on https://github.com/Sharnw/avored-merchant-warrior/blob/develop/src/CardPayment.php (for reference)

edit:
Just realised i created initial branch from master instead of dev. Shouldn't be a problem as the 2 extra commits are just you merging dev into master, but if it is a problem let me know and i will recreate the branch & PR from dev.

@Sharnw Sharnw changed the title Feature/payment option contract Feature/payment option interface Dec 27, 2019
@indpurvesh indpurvesh merged commit 959f8c4 into avored:dev Dec 27, 2019
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

Successfully merging this pull request may close these issues.

2 participants