@commercetools/connect-payments-sdk
Advanced tools
Comparing version 0.1.0 to 0.2.0
# @commercetools/connect-payments-sdk | ||
## 0.2.0 | ||
### Minor Changes | ||
- cdeb0af: allow to retrieve processor URL from the session | ||
## 0.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -16,3 +16,4 @@ import { AuthorizationService, CommercetoolsToken } from '../types/authorization.type'; | ||
getAllowedPaymentMethodsFromSession(session: Session): string[]; | ||
getProcessorUrlFromSession(session: Session): string; | ||
getPaymentInterfaceFromSession(session: Session): string | undefined; | ||
} |
@@ -44,2 +44,5 @@ "use strict"; | ||
} | ||
getProcessorUrlFromSession(session) { | ||
return session.metadata?.processorUrl; | ||
} | ||
getPaymentInterfaceFromSession(session) { | ||
@@ -46,0 +49,0 @@ return session.metadata?.paymentInterface; |
@@ -28,3 +28,4 @@ export type Session = { | ||
getAllowedPaymentMethodsFromSession(session: Session): string[]; | ||
getProcessorUrlFromSession(session: Session): string; | ||
getPaymentInterfaceFromSession(session: Session): string | undefined; | ||
} |
@@ -18,2 +18,3 @@ "use strict"; | ||
allowedPaymentMethods: this.sessionService.getAllowedPaymentMethodsFromSession(session), | ||
processorUrl: this.sessionService.getProcessorUrlFromSession(session), | ||
paymentInterface: this.sessionService.getPaymentInterfaceFromSession(session), | ||
@@ -20,0 +21,0 @@ }); |
@@ -18,2 +18,3 @@ export interface AuthenticationManager { | ||
allowedPaymentMethods: string[]; | ||
processorUrl: string; | ||
paymentInterface?: string; | ||
@@ -20,0 +21,0 @@ }; |
{ | ||
"name": "@commercetools/connect-payments-sdk", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Payment SDK for commercetools payment connectors", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97334
2556