Socket
Socket
Sign inDemoInstall

@commercetools/connect-payments-sdk

Package Overview
Dependencies
Maintainers
12
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools/connect-payments-sdk - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

6

CHANGELOG.md
# @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 @@

1

dist/commercetools/services/ct-session.service.d.ts

@@ -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 @@ };

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc