Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dintero/checkout-web-sdk

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dintero/checkout-web-sdk - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

CHANGELOG.md

2

package.json
{
"name": "@dintero/checkout-web-sdk",
"version": "0.0.11",
"version": "0.0.12",
"description": "Dintero Checkout SDK for web frontends",

@@ -5,0 +5,0 @@ "source": "src/dintero-checkout-web-sdk.ts",

@@ -16,3 +16,3 @@ # Dintero Checkout JavaScript SDK for frontend applications

For payments on devices with the Vipps app installed, after payment is completed in the Vipps app, the end user will be returned to the browser where **the `return_url` on the payment is opened in a ew browser tab** leaving the site that has the embedded checkout still open in a background browser tab on the device. In this case the SDK cannot guarantee that the handlers for `onPaymentAuthorized` or `onPaymentError` will be called.
For payments on devices with the Vipps app installed, after payment is completed in the Vipps app, the end user will be returned to the browser where **the `return_url` on the payment is opened in a new browser tab** leaving the site that has the embedded checkout still open in a background browser tab on the device. In this case the SDK cannot guarantee that the handlers for `onPaymentAuthorized` or `onPaymentError` will be called.

@@ -34,3 +34,3 @@ If no custom handler are added for `onPaymentError`, `onPaymentAuthorized` and `onPaymentCanceled` the SDK will redirect the user to the `return_url` in the payment session.

```
<script src="https://unpkg.com/@dintero/checkout-web-sdk@0.0.11/dist/checkout-web-sdk.umd.js" integrity="sha384-iR6i8hSBx+w5PWbu83MaVqQ04MocLyDm6JadFxy93xrp0GKTQEXeSD8I90hLvyy+"></script>
<script src="https://unpkg.com/@dintero/checkout-web-sdk@0.0.12/dist/checkout-web-sdk.umd.js" integrity="sha384-5O24oFt5onxdX5Oy89p2BiolScIILUAxKz7U3niumoIfkFQmVGY8N2DiqK5Ye7VL"></script>
```

@@ -69,6 +69,7 @@

sid: "T11223344.<short-uuid>",
language: "no", \\ optional parameter, an ISO 639-1 two-letter language code
onSession: function(event, checkout) {
console.log("session", event.session);
},
onPaymentAuthorized: function(event, checkout) {
onPayment: function(event, checkout) {
console.log("transaction_id", event.transaction_id);

@@ -100,3 +101,3 @@ console.log("href", event.href);

SessionUpdated,
SessionPaymentAuthorized,
SessionPayment,
SessionPaymentError,

@@ -111,6 +112,7 @@ SessionCancel,

sid: "T11223344.<short-uuid>",
language: "no", \\ optional parameter, an ISO 639-1 two-letter language code
onSession: (event: SessionLoaded | SessionUpdated) => {
console.log("session", event.session);
},
onPaymentAuthorized: (event: SessionPaymentAuthorized) => {
onPayment: (event: SessionPayment) => {
console.log("transaction_id", event.transaction_id);

@@ -136,3 +138,3 @@ console.log("href", event.href);

```ts
import { dintero, SessionPaymentAuthorized } from "dintero-checkout-web-sdk";
import { dintero } from "dintero-checkout-web-sdk";

@@ -171,2 +173,5 @@ const checkout = dintero.redirect({

2. Regenerate integrity hash and update the unpgk install instructions in this file `shasum -b -a 384 dist/checkout-web-sdk.umd.js | awk '{ print $1 }' | xxd -r -p | base64 | sed "s/^/sha384-/g"`
3. Publish new version to npm with `npm publish --access=public`.
3. Update README.md with new version/sha
4. Publish new version to npm with `npm publish --access=public`.
5. Tag and create release in Github
`git tag "v$(jq .version -r < package.json)"`
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