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

d8 port of #180- Use the payment processor payment method instead of the default c… #471

Merged
merged 3 commits into from
Feb 11, 2021

Conversation

jitendrapurohit
Copy link
Collaborator

…onfigured one

Overview

d8 port for #180

Before

Default payment instrument is set for the contribution.

After

Payment processor instrument is set for the contirbution done via webforms.

@jitendrapurohit jitendrapurohit changed the title d8 - Use the payment processor payment method instead of the default c… d8 port of #180- Use the payment processor payment method instead of the default c… Feb 9, 2021
@@ -2148,6 +2141,9 @@ private function contributionParams() {
'domain_id' => $domain,
));
}
if (empty($params['payment_instrument_id']) && !empty($params['payment_processor_id'])) {
Copy link
Collaborator Author

@jitendrapurohit jitendrapurohit Feb 9, 2021

Choose a reason for hiding this comment

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

included the changes from #289 which was a fix for the regression caused by #180

Copy link
Collaborator

Choose a reason for hiding this comment

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

@jitendrapurohit - can you please add a few lines to the ContributionIatsTest -> section line 180-186 to check that with this PR the payment_instrument_id is indeed no longer check (default) but credit card?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. Thanks for the pointer 👍 @KarinG

Copy link
Collaborator

Choose a reason for hiding this comment

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

Awesome - it's just a few lines but nice to secure this 👍

@KarinG
Copy link
Collaborator

KarinG commented Feb 11, 2021

Squashing and merging ✅

@KarinG KarinG merged commit afdeedb into colemanw:8.x-5.x Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants