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

Support for Payment Service API endpoint #466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adityashedge
Copy link

  1. Wrapper methods for Payment Service API
  2. Attach Payment Service to Branding Theme via the endpoints below:
    a. GET /BrandingThemes/{BrandingThemeID}/PaymentServices
    b. POST /BrandingThemes/{BrandingThemeID}/PaymentServices
  3. Parse XML and create appropriate Xeroizer::Record objects for Branding Theme as well as Payment Service API response.

1. Wrapper methods for Payment Service API
2. Attach Payment Service to Branding Theme via the endpoints below:
- GET /BrandingThemes/{BrandingThemeID}/PaymentServices
- POST /BrandingThemes/{BrandingThemeID}/PaymentServices
@adityashedge
Copy link
Author

With the current implementation, I have to parse the XML by myself. It also diverges from the existing syntax and structure of the gem where the code to add associations rests in the parent and is shared by including the Extensions module from the parent. I have rewritten the Payment Service API integration with the above points in consideration.

@waynerobinson @CloCkWeRX Would like both your inputs on this implementation.

TODO Add test cases for the above code change. Planning to do it once I receive your feedback.

}.to_xml

@application.http_post(@application.client, payment_services_endpoint(id), xml)
module Extensions
Copy link
Collaborator

Choose a reason for hiding this comment

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

Given the namespace change, can you update the CHANGELOG as well / write some quick migration notes?

Copy link
Collaborator

@CloCkWeRX CloCkWeRX left a comment

Choose a reason for hiding this comment

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

Seems sensible

@rjaus
Copy link
Collaborator

rjaus commented Sep 21, 2021

I will write release notes for this and include it in the gem release.

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