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

CardConnect: Add frontendid parameter to requests #3198

Merged
merged 1 commit into from
Apr 26, 2019
Merged

CardConnect: Add frontendid parameter to requests #3198

merged 1 commit into from
Apr 26, 2019

Conversation

gcatlin
Copy link
Contributor

@gcatlin gcatlin commented Apr 26, 2019

Add frontendid parameter to request bodies using the gateway's
application_id as the value. This enables CardConnect to internally
account for their costs by attributing transactions to the originating
application / platform associated with the frontendid.

ECS-287

Closes #3198

Unit:
22 tests, 92 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
23 tests, 55 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Add `frontendid` parameter to request bodies using the gateway's
application_id as the value. This enables CardConnect to internally
account for their costs by attributing transactions to the originating
application / platform associated with the frontendid.

ECS-287

Closes #3198

Unit:
22 tests, 92 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
23 tests, 55 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
@gcatlin
Copy link
Contributor Author

gcatlin commented Apr 26, 2019

@jknipp @curiousepic

@jknipp jknipp requested a review from a team April 26, 2019 13:18
end.respond_with(successful_purchase_response)
ensure
@gateway.class.application_id = nil
end
Copy link
Member

Choose a reason for hiding this comment

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

Do we need the ensure block? The @gateway instance variable and application_id should be reset for each test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Verified this an existing pattern in place in ActiveMerchant.

Copy link
Member

@jknipp jknipp left a comment

Choose a reason for hiding this comment

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

One minor comment, but LGTM otherwise.

Copy link
Member

@jknipp jknipp left a comment

Choose a reason for hiding this comment

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

🚢

@gcatlin gcatlin merged commit de84258 into activemerchant:master Apr 26, 2019
@gcatlin gcatlin deleted the cardconnect-frontendid branch April 26, 2019 14:26
whitby3001 pushed a commit to whitby3001/active_merchant that referenced this pull request Sep 3, 2019
Add `frontendid` parameter to request bodies using the gateway's
application_id as the value. This enables CardConnect to internally
account for their costs by attributing transactions to the originating
application / platform associated with the frontendid.

ECS-287

Closes activemerchant#3198

Unit:
22 tests, 92 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote:
23 tests, 55 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
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