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

@revolut/checkout

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@revolut/checkout - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

cjs/loader.js

@@ -9,6 +9,6 @@ "use strict";

*
* @param token `public_id` from [create payment order](https://developer.revolut.com/docs/merchant-api/#api-api-order-object-create-payment-order) API request
* @param mode [API](https://developer.revolut.com/docs/merchant-api/#api) environment, default to `'prod'`
* @param token `public_id` from [create payment order](https://developer.revolut.com/docs/merchant-api/#api-reference-api-reference-orders-create-an-order) API request
* @param mode [API](https://developer.revolut.com/docs/merchant-api/#api-reference) environment, default to `'prod'`
*
* @see [`RevolutCheckout.js` reference](https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference-revolutcheckout)
* @see [`RevolutCheckout.js` reference](https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference)
*

@@ -15,0 +15,0 @@ * @example

@@ -7,6 +7,6 @@ import { MODE, URLS } from './constants';

*
* @param token `public_id` from [create payment order](https://developer.revolut.com/docs/merchant-api/#api-api-order-object-create-payment-order) API request
* @param mode [API](https://developer.revolut.com/docs/merchant-api/#api) environment, default to `'prod'`
* @param token `public_id` from [create payment order](https://developer.revolut.com/docs/merchant-api/#api-reference-api-reference-orders-create-an-order) API request
* @param mode [API](https://developer.revolut.com/docs/merchant-api/#api-reference) environment, default to `'prod'`
*
* @see [`RevolutCheckout.js` reference](https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference-revolutcheckout)
* @see [`RevolutCheckout.js` reference](https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference)
*

@@ -13,0 +13,0 @@ * @example

{
"name": "@revolut/checkout",
"version": "1.0.2",
"version": "1.0.3",
"description": "RevolutCheckout.js as npm module",

@@ -5,0 +5,0 @@ "author": "John Grishin <hi@johngrish.in>",

@@ -6,6 +6,6 @@ import { RevolutCheckoutInstance, Mode } from './types';

*
* @param token `public_id` from [create payment order](https://developer.revolut.com/docs/merchant-api/#api-api-order-object-create-payment-order) API request
* @param mode [API](https://developer.revolut.com/docs/merchant-api/#api) environment, default to `'prod'`
* @param token `public_id` from [create payment order](https://developer.revolut.com/docs/merchant-api/#api-reference-api-reference-orders-create-an-order) API request
* @param mode [API](https://developer.revolut.com/docs/merchant-api/#api-reference) environment, default to `'prod'`
*
* @see [`RevolutCheckout.js` reference](https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference-revolutcheckout)
* @see [`RevolutCheckout.js` reference](https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference)
*

@@ -12,0 +12,0 @@ * @example

@@ -5,3 +5,3 @@ import { MODE } from './constants';

export declare type ValidationErrorType = 'validation.card.number.incomplete' | 'validation.card.number.invalid' | 'validation.card.number.required' | 'validation.card.expiry.expired' | 'validation.card.expiry.incomplete' | 'validation.card.expiry.required' | 'validation.card.cvv.invalid' | 'validation.card.cvv.required' | 'validation.postcode.invalid' | 'validation.postcode.required' | 'validation.email.incomplete' | 'validation.email.invalid' | 'validation.email.required' | 'validation.phone.code.required' | 'validation.phone.number.invalid' | 'validation.phone.number.required';
export declare type RevolutCheckoutErrorType = 'error.unknown' | 'error.unauthenticated-access' | 'error.order-not-found' | 'error.transaction-invalid-state' | 'error.declined' | 'error.token-not-found' | 'error.email-is-not-specified' | 'error.order-already-completed' | 'error.deactivated-merchant';
export declare type RevolutCheckoutErrorType = 'error.unknown' | 'error.unauthenticated-access' | 'error.order-not-found' | 'error.transaction-invalid-state' | 'error.declined' | 'error.token-not-found' | 'error.email-is-not-specified' | 'error.order-already-completed' | 'error.deactivated-merchant' | 'error.invalid-postcode' | 'error.invalid-email' | 'error.do-not-honour' | 'error.insufficient-funds' | 'error.3ds-failed' | 'error.expired-card' | 'error.incorrect-cvv-code' | 'error.order-is-cancelled' | 'error.transaction-failed';
export interface ValidationError extends Error {

@@ -14,2 +14,3 @@ name: 'Validation';

type: RevolutCheckoutErrorType;
code?: number;
}

@@ -104,3 +105,3 @@ export declare type StatusType = 'default' | 'focused' | 'invalid' | 'empty' | 'autofilled' | 'completed';

*
* @see https://developer.revolut.com/docs/merchant-api/#revolut-widget-revolut-widget-integration-guide-pop-up
* @see https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference-instance-paywithpopup
*/

@@ -111,3 +112,3 @@ payWithPopup: (options?: PopupOptions) => RevolutCheckoutInstance;

*
* @see https://developer.revolut.com/docs/merchant-api/#revolut-widget-revolut-widget-integration-guide-card-field
* @see https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference-instance-createcardfield
*/

@@ -114,0 +115,0 @@ createCardField: (options?: CardFieldOptions) => RevolutCheckoutCardField;

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