Skip to content

Implement BillingId support #48

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 3 commits into
base: master
Choose a base branch
from
Open

Conversation

nbertram
Copy link

In some organisations card billing tokens are shared across systems and it's easier to use a local billing ID (like the customer number) instead of the DPS billing ID. This is explicitly supported by DPS through the BillingId parameter which the library can't currently handle, as the card reference is presumed to be the DpsBillingId.

I've implemented it as an alternative billingId parameter here, though it might be neater to continue to use cardReference with either an option to say that it's a BillingId, or a prefix on the reference to say so. That would be more in keeping with the Omnipay interface...

I haven't written tests for this yet, I thought I'd see whether this is the preferred approach first. Happy to write tests once we have a solid approach.

@nbertram
Copy link
Author

... and fixed Travis, though reported coverage isn't great.

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.

1 participant