Skip to content

Commit d637f31

Browse files
authored
feat: Add GET handler to Payment Service (#3)
Implement and test a GET handler in the Payment Service, allowing CH services to use this SDK to retrieve pre-existing payment sessions from the CH Payment API.
1 parent ade7ad2 commit d637f31

File tree

6 files changed

+701
-604
lines changed

6 files changed

+701
-604
lines changed

dist/services/payment/service.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,12 @@ export default class PaymentService {
1616
* @param createPaymentRequest a create payment request
1717
*/
1818
createPaymentWithFullUrl(createPaymentRequest: CreatePaymentRequest): Promise<ApiResult<ApiResponse<Payment>>>;
19+
/**
20+
* Retrieves a payment session.
21+
*
22+
* @param paymentResourceUri the desired payment session's URI
23+
*/
24+
getPayment(paymentResourceUri: string): Promise<ApiResult<ApiResponse<Payment>>>;
1925
private createPaymentHandler;
26+
private handlePaymentHttpResponse;
2027
}

dist/services/payment/service.js

Lines changed: 28 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/services/payment/service.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)