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

Payments service integration #13

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

sardhani-ch
Copy link
Contributor

No description provided.

pom.xml Outdated
@@ -142,6 +142,16 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
Copy link
Contributor

Choose a reason for hiding this comment

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

If this plugin is added to create an image then you dont need it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleted

public PaymentApi createPaymentSession(String passThroughHeader, Transaction transaction) throws ServiceException {
// below is the dummy body, resource should be the payment link generated by transactcion api
PaymentSessionApi paymentSessionApi = new PaymentSessionApi();
paymentSessionApi.setRedirectUri("https://cidev.aws.chdev.org/transactions/117524-754816-491724/company/10000025/confirmation");
Copy link
Contributor

Choose a reason for hiding this comment

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

I am guessing these value will depend on the environment so we need to use variables.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed the comments

@sardhani-ch sardhani-ch force-pushed the payments-service-integration branch 3 times, most recently from 96360ba to 113e2d1 Compare January 31, 2024 09:14
@ch-code-analysis
Copy link

CI: No security warnings found

@ch-code-analysis
Copy link

CI: No security warnings found

@ch-code-analysis
Copy link

CI: No security warnings found

@ch-code-analysis
Copy link

CI: No security warnings found

private static EnvironmentReader environmentReader = new EnvironmentReaderImpl();

public PaymentApi createPaymentSession(String passThroughHeader, Transaction transaction) throws ServiceException {
//below is the dummy body, Note that resource should be the payment link generated by transactcion api
Copy link
Contributor

Choose a reason for hiding this comment

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

You can Add TODO block instead of comment, so it won't get lost

Copy link
Contributor Author

Choose a reason for hiding this comment

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

comments addressed

@Autowired
private PaymentsService paymentsService;

@PostMapping(value = "/transaction/payments/{id}")
Copy link
Contributor

Choose a reason for hiding this comment

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

need to change the url. Id being passed id is transactionId so "/transaction/{id}/payments" makes more sense, as currently it looks like you are passing paymentId

Copy link
Contributor Author

Choose a reason for hiding this comment

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

comments addressed

@ch-code-analysis
Copy link

CI: No security warnings found

@ch-code-analysis
Copy link

CI: No security warnings found

swalke-ch
swalke-ch previously approved these changes Feb 1, 2024
@ch-code-analysis
Copy link

CI: No security warnings found

@ch-code-analysis
Copy link

CI: No security warnings found

@ch-code-analysis
Copy link

CI: No security warnings found

@chsonarqubeprchecks
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ch-code-analysis
Copy link

CI: No security warnings found

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.

None yet

5 participants