@motopays/pay-form 2.1.0-rc.0 → 2.1.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## 2.0.4
3
+ ## 2.1.0
4
+
4
5
  ### Added
5
- - paymentFlow field to settings model. Read more details in README.md
6
- - createInvoice callback to moto-payment-form component for overriding invoice generation
7
- - makePayment callback to moto-payment-form component for overriding payment flow
6
+ - isTaxVisible field in settings model. Read more details in README.md
7
+
8
+ ### Fixed
9
+ - popup blocking during payment processing
8
10
 
9
11
 
10
12
 
@@ -30,6 +32,7 @@
30
32
 
31
33
 
32
34
  ## 2.0.2
35
+
33
36
  ### Fixed
34
37
  - Manage cards collapsed by default
35
38
  - Empty userPreferences checkboxes array causes an error
@@ -40,6 +43,7 @@
40
43
 
41
44
 
42
45
 
46
+
43
47
  ## 2.0.1
44
48
  - CHANGELOG.md updated
45
49
 
package/README.md CHANGED
@@ -201,6 +201,7 @@ export class AppComponent {
201
201
  | isSignatureRequired | boolean | Whether to show an error and deny access to the payment form if the signature field in the payment model is not set |
202
202
  | isCloseButtonVisible | boolean | Whether to show a window close button in the top right corner of the screen |
203
203
  | isHeaderVisible | boolean | Whether to show a header in the top of the screen |
204
+ | isTaxVisible | boolean | Whether to show a tax description (taxDescription field in the ILanguage model) |
204
205
  | closePaymentRedirect | boolean | Whether to close a window that was open on 3ds or apm pages after a redirect to returnUrl |
205
206
  | isProblemTipsListVisible | boolean | Whether to show tips on the payment result page when the payment is rejected, if tips exist for the error status code that occurred |
206
207
  | languageSettings | ILanguageSettings | The language settings
@@ -352,6 +353,7 @@ const settings: ISettings = {
352
353
  }
353
354
  },
354
355
  pay: 'custom',
356
+ taxDescription: 'custom',
355
357
  paymentProcessing: 'custom',
356
358
  paymentResult: {
357
359
  success: 'custom',
package/index.d.ts CHANGED
@@ -7,7 +7,6 @@ export type TOrderType = "regular" | "free-trial" | "gems";
7
7
  export type TPaymentInitiator = "customer" | "merchant";
8
8
  export type TButtonStateUntilFilled = "enabled" | "disabled" | "hidden-enabled";
9
9
  export type TLanguageCode = "en-US" | "es-ES" | "fr-FR" | string;
10
- export type TPaymentFlow = "default" | "invoice-overridden" | "payment-overridden";
11
10
  export interface ITextContainer {
12
11
  text: Partial<Record<TLanguageCode, string>>;
13
12
  }
@@ -69,6 +68,7 @@ export interface ILanguage {
69
68
  };
70
69
  totalHeader: string;
71
70
  pay: string;
71
+ taxDescription?: string;
72
72
  availableCardBrandsHeader: string;
73
73
  transactionProtectedBy: string;
74
74
  existingCards: {
@@ -114,15 +114,12 @@ export interface IEvents {
114
114
  };
115
115
  error: boolean;
116
116
  }
117
- export interface IPaymentFlowSettings {
118
- tokenizeCard?: boolean;
119
- type?: TPaymentFlow;
120
- }
121
117
  export interface ISettings {
122
118
  isCloseButtonVisible?: boolean;
123
119
  isProblemTipsListVisible?: boolean;
124
120
  isSignatureRequired?: boolean;
125
121
  isHeaderVisible?: boolean;
122
+ isTaxVisible?: boolean;
126
123
  closePaymentRedirect?: boolean;
127
124
  languageSettings?: ILanguageSettings;
128
125
  urls: IServicesUrls;
@@ -135,7 +132,6 @@ export interface ISettings {
135
132
  requiredFieldsBehavior?: IRequiredFieldsBehavior;
136
133
  events?: IEvents;
137
134
  apmsCollapse?: boolean;
138
- paymentFlow?: IPaymentFlowSettings;
139
135
  }
140
136
  export interface ISimple<Value = any> {
141
137
  [key: string]: Value;
@@ -226,77 +222,6 @@ export interface IPaymentResponse {
226
222
  user: IUser;
227
223
  signature?: string;
228
224
  }
229
- interface IBillingAddress$1 {
230
- addressLine: string;
231
- city: string;
232
- state: string;
233
- country: string;
234
- zip: string;
235
- }
236
- declare enum ChallengeWindowSizeType {
237
- SMALL = 1,
238
- MEDIUM = 2,
239
- LARGE = 3,
240
- EXTRA_LARGE = 4,
241
- FULL_SCREEN = 5
242
- }
243
- export interface IBrowserInfo {
244
- timezoneOffsetUtcMinutes: number;
245
- locale: string;
246
- userAgent: string;
247
- javaEnabled: boolean;
248
- javaScriptEnabled: boolean;
249
- colorDepth: number;
250
- height: number;
251
- width: number;
252
- challengeWindowSize: ChallengeWindowSizeType;
253
- }
254
- export interface IDeviceInfo {
255
- browserData: IBrowserInfo;
256
- }
257
- type TAmountType$1 = "GrossWithoutGst" | "Net" | "Gross";
258
- type TOrderType$1 = "Regular" | "FreeTrial" | "Gems";
259
- interface IOrder$1 {
260
- amount?: number;
261
- amountType?: TAmountType$1;
262
- currency: string;
263
- description?: string;
264
- details?: string;
265
- type?: TOrderType$1;
266
- tax?: number;
267
- }
268
- export interface IPayer {
269
- id: string;
270
- email: string;
271
- phoneNumber?: string;
272
- ipAddress?: string;
273
- deviceInfo: IDeviceInfo;
274
- billingAddress?: IBillingAddress$1;
275
- }
276
- type TPaymentInitiator$1 = "Customer" | "Merchant";
277
- export interface IRejectionPreferences {
278
- showResolvingTips: boolean;
279
- }
280
- export interface IRequisites {
281
- anchor: string;
282
- cardHolder: string;
283
- cardNumber: string;
284
- cvv: string;
285
- expiration: string;
286
- paymentToken: string;
287
- type: string;
288
- }
289
- export interface IPaymentRequest {
290
- id: string;
291
- initiator?: TPaymentInitiator$1;
292
- returnUrl?: string;
293
- webhookUrl?: string;
294
- order: IOrder$1;
295
- payer: IPayer;
296
- requisites: IRequisites;
297
- signature?: string;
298
- rejectionPreferences: IRejectionPreferences;
299
- }
300
225
  declare class ServiceAction<Type extends string, Payload = unknown | undefined> {
301
226
  type: Type;
302
227
  payload?: Payload | undefined;
@@ -322,8 +247,6 @@ export interface IApmsShowAnalytics {
322
247
 
323
248
  export {
324
249
  CreditCardTypeCardBrandId,
325
- IBillingAddress$1 as IBillingAddressRequest,
326
- IOrder$1 as IOrderRequest,
327
250
  };
328
251
 
329
252
  export {};