@authvia/payment-method-create 1.0.9 → 1.0.11
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/dist/components/AuthviaPaymentMethodForm.vue.d.ts +2 -0
- package/dist/components/internal/AuthviaPaymentMethodAddAch.vue.d.ts +3 -0
- package/dist/composables/ach/useAuthviaPaymentMethodAddAchForm.d.ts +3 -0
- package/dist/composables/useHostService.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/utils/config.d.ts +1 -1
- package/dist/vue-plugin.js +2 -2
- package/dist/vue-plugin.umd.cjs +2 -2
- package/package.json +4 -2
|
@@ -29,6 +29,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
29
29
|
country?: string;
|
|
30
30
|
postalCode?: string;
|
|
31
31
|
selectionMode?: "default" | "collapse";
|
|
32
|
+
isAddressEditable?: boolean;
|
|
32
33
|
};
|
|
33
34
|
card: {
|
|
34
35
|
demoMode?: boolean;
|
|
@@ -45,6 +46,7 @@ declare const _default: import('vue').DefineComponent<Props, {
|
|
|
45
46
|
country?: string;
|
|
46
47
|
postalCode?: string;
|
|
47
48
|
selectionMode?: "default" | "collapse";
|
|
49
|
+
isAddressEditable?: boolean;
|
|
48
50
|
};
|
|
49
51
|
paypal: boolean | import('../types').PayPalConfig;
|
|
50
52
|
paze: {
|
|
@@ -118,6 +118,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
118
118
|
isAddressFieldDisabled: (fieldValue: string | undefined) => boolean;
|
|
119
119
|
azp: import('vue').ComputedRef<string>;
|
|
120
120
|
handleAddressFormSubmit: (data: PaymentMethodBillingAddress) => void;
|
|
121
|
+
handleAddressSummaryClick: (event: MouseEvent) => void;
|
|
122
|
+
resetAddressToOriginalPrefill: () => void;
|
|
123
|
+
addressFormRemountKey: import('vue').Ref<number, number>;
|
|
121
124
|
handleUpdateForgetCard: (value: boolean) => void;
|
|
122
125
|
addressFormRef: import('vue').Ref<unknown, unknown>;
|
|
123
126
|
formRef: import('vue').Ref<unknown, unknown>;
|
|
@@ -54,6 +54,9 @@ export declare function useAuthviaPaymentMethodAddAchForm(props: AuthviaPaymentM
|
|
|
54
54
|
isAddressFieldDisabled: (fieldValue: string | undefined) => boolean;
|
|
55
55
|
azp: ComputedRef<string>;
|
|
56
56
|
handleAddressFormSubmit: (data: PaymentMethodBillingAddress) => void;
|
|
57
|
+
handleAddressSummaryClick: (event: MouseEvent) => void;
|
|
58
|
+
resetAddressToOriginalPrefill: () => void;
|
|
59
|
+
addressFormRemountKey: Ref<number, number>;
|
|
57
60
|
handleUpdateForgetCard: (value: boolean) => void;
|
|
58
61
|
addressFormRef: Ref<unknown, unknown>;
|
|
59
62
|
formRef: Ref<unknown, unknown>;
|
|
@@ -21,3 +21,5 @@ export interface UseHostServiceReturn {
|
|
|
21
21
|
* Compatible with original HostService.instance() API
|
|
22
22
|
*/
|
|
23
23
|
export declare function useHostService(): UseHostServiceReturn;
|
|
24
|
+
/** CDN base URL set via Vue plugin `cdnURL` option; empty until configured. */
|
|
25
|
+
export declare function getConfiguredHostCdnUrl(): string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export interface AuthviaPaymentMethodFormProps {
|
|
|
82
82
|
postalCode?: string;
|
|
83
83
|
/** Address selection mode for embedded card address form; default `default`. */
|
|
84
84
|
selectionMode?: 'default' | 'collapse';
|
|
85
|
+
isAddressEditable?: boolean;
|
|
85
86
|
};
|
|
86
87
|
ach?: {
|
|
87
88
|
demoMode?: boolean;
|
|
@@ -100,6 +101,7 @@ export interface AuthviaPaymentMethodFormProps {
|
|
|
100
101
|
postalCode?: string;
|
|
101
102
|
/** Address selection mode for embedded ACH address form; default `default`. */
|
|
102
103
|
selectionMode?: 'default' | 'collapse';
|
|
104
|
+
isAddressEditable?: boolean;
|
|
103
105
|
};
|
|
104
106
|
paypal?: boolean | PayPalConfig;
|
|
105
107
|
/** `true`, or `{ merchantId, redirectUrl? }` when you want Venmo without a `paypal` prop. */
|
|
@@ -270,6 +272,8 @@ export interface PaymentMethodConfigItem {
|
|
|
270
272
|
*/
|
|
271
273
|
export interface AuthviaPaymentMethodFormPluginOptions {
|
|
272
274
|
apiBaseURL: string;
|
|
275
|
+
/** CDN origin for nested web-component assets (e.g. credit-card script). @example 'https://cdn.authvia-nonprod.com' */
|
|
276
|
+
cdnURL: string;
|
|
273
277
|
googleAPIKey: string;
|
|
274
278
|
isPlaidVisible: boolean;
|
|
275
279
|
pazeSDKURL: string;
|
package/dist/utils/config.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const DEFAULT_CREDIT_CARD_SCRIPT_PATH: string;
|
|
|
29
29
|
*
|
|
30
30
|
* CDN and API hosts are fixed at build time via `VITE_APP_CDN_URL` and `VITE_APP_API_BASE_URL`
|
|
31
31
|
* (see `vite.config.wc.ts`). Load the dev, integration, or production CDN bundle that matches
|
|
32
|
-
*
|
|
32
|
+
* Vue plugin embeds pass `apiBaseURL` and `cdnURL` via `app.use(..., options)`.
|
|
33
33
|
*
|
|
34
34
|
* @returns A non-empty string suitable for a script element `src`
|
|
35
35
|
*/
|