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

Enable Tsys multipass Payment Gateway #1

Merged
merged 10 commits into from
Dec 16, 2019
Merged

Conversation

rahuldess
Copy link

@rahuldess rahuldess commented Dec 4, 2019

Enabling Tsys Multipass payment gateway in ActiveMerchant gem.

FYI, ActiveMerchant's Source PR: activemerchant#3469

@rahuldess rahuldess changed the title Enable tsys multipass Enable Tsys multipass Dec 4, 2019
@rahuldess rahuldess changed the title Enable Tsys multipass Enable Tsys multipass Payment Gateway Dec 14, 2019
@rahuldess rahuldess requested a review from kschick December 14, 2019 02:09
(parsed_body.present? && parsed_body.first[1]) || EMPTY_OBJ
end

def parse(body)
Copy link

@vbrazo vbrazo Dec 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a look at the active_merchant and I noticed that other gateways are parsing JSON just like you're doing. I'd probably recommend isolating this and make a global helper for the gem.

Some examples:
https://github.com/activemerchant/active_merchant/blob/master/lib/active_merchant/billing/gateways/adyen.rb#L443
https://github.com/activemerchant/active_merchant/blob/master/lib/active_merchant/billing/gateways/balanced.rb#L211

Screen Shot 2019-12-16 at 11 38 50 AM

It isn't a mandatory change. It's a nice to have but I believe that'd be a plus for this gem if we have a Parser object that is able to parse JSON, XML and CGI. These are the ones that I saw. I'd start with JSON.

Copy link
Author

@rahuldess rahuldess Dec 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parser might require some good thought on how to handle it generic-ly. Each gateway file want's to handle their parsing in its own specific way.. Considering it ill leave it for now.

@rahuldess rahuldess force-pushed the enable-tsys-multipass branch from c77dd68 to 6d098b3 Compare December 16, 2019 20:51
@rahuldess rahuldess merged commit b5c9a33 into master Dec 16, 2019
@csolonynka csolonynka deleted the enable-tsys-multipass branch March 14, 2023 21:02
jorgedjr21 pushed a commit that referenced this pull request Sep 3, 2024
* Adding Tsys Multipass to ActiveMerchant

* enabling verify

* Adding Tsys Multipass to ActiveMerchant

* enabling verify

* unit specs

* adding specs

* fixing

* fixing fixtures order spec

* fixing rubocop issues
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.

3 participants