Skip to content

Added ability to use SecurePay's stored card functions using createCard/updateCard/deleteCard #19

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

kre8or69
Copy link

Hi team

Added the ability to use the card storage functions in secure pay and modified the purchase method to see the cardReference in the attributes and use the stored card purchase method instead. Uses the existing updateCard/deleteCard/createCard syntax that Omnipay requires.

Also fixed some of the tests that were failing and added new ones to test stored card functions.

I fixed up the line endings so they are all normalised and add a .gitattribute the force 'lf' endings!

kre8or69 and others added 8 commits January 15, 2019 16:04
- Can add a card use createCard()
- Cad edit an existing card using updateCard()
- Can delete a stored card using deleteCard()

All options require a 'cardReference' parameter to work.

* Added a check to purchase() to see if the user is sending a cardReference, then processes the payment via the credit card associated to the cardReference if there is one.

* Fixed some tests that appear to be no longer working (invalid headers. missing mocked data)

* Changed the API version to a variable as the standard XML API uses 'xml-4.2' and stored card functions use 'spxml-4.2'
@kre8or69
Copy link
Author

Sorry there was some weirdness in some of the mocked responses that were fine on mine but were downloading as symlinks on others. Deleted and re-added them and fine now!

@webaction
Copy link

@barryvdh is there any reason why this feature request can not be merged into a release?

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