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

[REF] Convert Elavon Payment Processor to use Guzzle and ensure that … #24131

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

seamuslee001
Copy link
Contributor

…we are using POST requests not GET requests to Elavon end point

Overview

This updates the Elavon Payment Processor to use Guzzle and also use POST requests rather than Get

Before

Curl used and GET requests used

After

Guzzle used and POST requests used

ping @eileenmcnaughton @monishdeb @JoeMurray

@civibot
Copy link

civibot bot commented Aug 3, 2022

(Standard links)

@civibot civibot bot added the master label Aug 3, 2022
CURLOPT_SSL_VERIFYHOST => Civi::settings()->get('verifySSL') ? 2 : 0,
CURLOPT_SSL_VERIFYPEER => Civi::settings()->get('verifySSL'),
],
])->getBody();
Copy link
Member

Choose a reason for hiding this comment

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

@seamuslee001 is it required to set the CURLOPT_FOLLOWLOCATION if as per L160 above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok have updated to it @monishdeb

@eileenmcnaughton
Copy link
Contributor

I don't suppose we can move it into an extension while we are touching it....

Are you able to test it with any test creds? Do we know if it even works? If it were an extension we could not support it for php 8....

@seamuslee001
Copy link
Contributor Author

@eileenmcnaughton I would rather not, I only put this up because I had to do this for a client today to fix their processing

…we are using POST requests not GET requests to Elavon end point

Include CURLOPT_FOLLOWLOCATION param as before
@eileenmcnaughton
Copy link
Contributor

Merging this based on discussion with @seamuslee001 - key points

  • their client already has this patch in prodcution
    • Seamus will follow up with an extension conversion

@eileenmcnaughton eileenmcnaughton merged commit 17fe106 into civicrm:master Aug 8, 2022
@eileenmcnaughton eileenmcnaughton deleted the elavon_guzzle branch August 8, 2022 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants