@payfurl/react-plugin 1.0.0
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/CxPayThreeDsProvider-qI6LA8iK-Bpdve37Y.js +12 -0
- package/dist/DefaultThreeDsProvider-BKnpkX8X-DjgfDV-_.js +224 -0
- package/dist/EcentricThreeDsProvider-Dor61dsV-wSxgfkFR.js +86 -0
- package/dist/EpnaThreeDsProvider-6j4cBf2g-DKKUHzvH.js +12 -0
- package/dist/FlashBancThreeDsProvider-B1IMjfpm-Tzb2NaCS.js +12 -0
- package/dist/GPaymentsThreeDsProvider-PKB94NB4-DpHbV578.js +100 -0
- package/dist/MetricsGlobalThreeDsProvider-CkIGiDkd-DoLM32Cq.js +146 -0
- package/dist/NmiThreeDsProvider-CcMEqhmQ-DXmogp9D.js +12 -0
- package/dist/NuveiThreeDsProvider-CwXxM_h7-D7sowzvz.js +176 -0
- package/dist/PayGLocalThreeDsProvider-sIfhhTia-C-90nFC1.js +127 -0
- package/dist/PayWayAppleButton-BhhFv3LB-BWA8af0L.js +141 -0
- package/dist/PayabliThreeDsProvider-Dbril8Rp-DjxP1Zjs.js +12 -0
- package/dist/SkyBankThreeDsProvider-C07fNAvi-CDQRSmTJ.js +12 -0
- package/dist/ThreeDsPostAuthResponse.type-CaV_50Qh-CaV_50Qh.js +26 -0
- package/dist/cxpay-CEQ4-BTN-D8-vI4wh.js +7 -0
- package/dist/default-C_HQSLX4-BWCZmTvd.js +7 -0
- package/dist/ecentric-BNc1h8Eo-IrqJ8q3L.js +7 -0
- package/dist/epna-B9Y2q1w--DVGb9J09.js +7 -0
- package/dist/flashbanc-C0Ty8vp7-DQKcslty.js +7 -0
- package/dist/forter-CfW26Mkn-CmVDxLR0.js +46 -0
- package/dist/fraudProvider.type-ewIWghbD-ewIWghbD.js +7 -0
- package/dist/gpayments-rnHqXJDK-D68BA53b.js +7 -0
- package/dist/index-CQ8WmrJ_.js +13299 -0
- package/dist/metrics_global-B6yYoxRR-C3pcjfUz.js +7 -0
- package/dist/nmi-2JLTZ129-DIP4ydh7.js +7 -0
- package/dist/nuvei-Bh2t9NPs-DiT3vmdx.js +7 -0
- package/dist/payabli-NfqCrBOu-D0t1MIbi.js +7 -0
- package/dist/payfurl-react.es.js +4 -0
- package/dist/payfurl-react.umd.js +303 -0
- package/dist/payglocal-D3sg1uGV-D8upA6BT.js +7 -0
- package/dist/payway_rest-B7rIKWt2-1A5dJ_Ns.js +7 -0
- package/dist/plugins/react/src/components/PayfurlDropin.d.ts +15 -0
- package/dist/plugins/react/src/index.d.ts +6 -0
- package/dist/skybank-CrMnPsZ3-BoCAKL4P.js +7 -0
- package/dist/src/click2pay/ClickToPayOptions.type.d.ts +28 -0
- package/dist/src/sdk/checkout/checkoutProvider.type.d.ts +66 -0
- package/dist/src/sdk/fraud/fraudProvider.type.d.ts +3 -0
- package/dist/src/sdk/types/DropInOptions.type.d.ts +72 -0
- package/dist/src/sdk/types/NetworkTokenOptions.type.d.ts +6 -0
- package/dist/src/sdk/types/UpiOptions.type.d.ts +9 -0
- package/package.json +49 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface PayfurlDropinProps {
|
|
2
|
+
environment: string;
|
|
3
|
+
publicKey: string;
|
|
4
|
+
debug?: boolean;
|
|
5
|
+
amount: number;
|
|
6
|
+
currency: string;
|
|
7
|
+
successMessage?: string;
|
|
8
|
+
options?: object;
|
|
9
|
+
onSuccess: (message: string) => void;
|
|
10
|
+
onFailure: (message: string) => void;
|
|
11
|
+
onLoaded: () => void;
|
|
12
|
+
onValidationStatusChange: (status: boolean, message: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const PayfurlDropin: (props: PayfurlDropinProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default PayfurlDropin;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import PayfurlDropin from "./components/PayfurlDropin.js";
|
|
2
|
+
import type { DropInOptionsType, DropInGooglePayOptionsType, DropInApplePayOptionsType } from "@/sdk/types/DropInOptions.type.ts";
|
|
3
|
+
import type { UpiOptionsType } from "@/sdk/types/UpiOptions.type.ts";
|
|
4
|
+
import type { ClickToPayOptionsType } from "@/click2pay/ClickToPayOptions.type";
|
|
5
|
+
import type { NetworkTokenOptionsType } from "@/sdk/types/NetworkTokenOptions.type";
|
|
6
|
+
export { PayfurlDropin, DropInOptionsType, UpiOptionsType, DropInGooglePayOptionsType, DropInApplePayOptionsType, ClickToPayOptionsType, NetworkTokenOptionsType };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type ClickToPayOptionsType = {
|
|
2
|
+
dpaId: string;
|
|
3
|
+
dpaName?: string;
|
|
4
|
+
ccvRequired?: boolean;
|
|
5
|
+
useFpan?: boolean;
|
|
6
|
+
cardBrands?: CardBrandType[];
|
|
7
|
+
dpaBillingPreference?: DpaBillingPreferenceType;
|
|
8
|
+
confirmPayment?: boolean;
|
|
9
|
+
locale?: string;
|
|
10
|
+
savedCardsOptions?: SavedCardsOptionsType;
|
|
11
|
+
saveCard?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type SavedCardsOptionsType = {
|
|
14
|
+
align: "left" | "center";
|
|
15
|
+
};
|
|
16
|
+
export declare enum CardBrandType {
|
|
17
|
+
mastercard = "mastercard",
|
|
18
|
+
maestro = "maestro",
|
|
19
|
+
visa = "visa",
|
|
20
|
+
amex = "amex",
|
|
21
|
+
discover = "discover"
|
|
22
|
+
}
|
|
23
|
+
export declare const allCardBrands: CardBrandType[];
|
|
24
|
+
export declare enum DpaBillingPreferenceType {
|
|
25
|
+
NONE = "NONE",
|
|
26
|
+
FULL = "FULL",
|
|
27
|
+
POSTAL_COUNTRY = "POSTAL_COUNTRY"
|
|
28
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare enum CheckoutProviderType {
|
|
2
|
+
AZUPAY = "azupay",
|
|
3
|
+
SHIFT = "shift",
|
|
4
|
+
PAYGLOCAL = "payglocal",
|
|
5
|
+
PESAPAL = "pesapal",
|
|
6
|
+
ADDI = "addi",
|
|
7
|
+
AFFIRM = "affirm",
|
|
8
|
+
AFTERPAY = "afterpay",
|
|
9
|
+
ALMA = "alma",
|
|
10
|
+
APLAZAME = "aplazame",
|
|
11
|
+
APLAZO = "aplazo",
|
|
12
|
+
ATOME = "atome",
|
|
13
|
+
BILLEASE = "billease",
|
|
14
|
+
CASHEW = "cashew",
|
|
15
|
+
CASHPRESSO = "cashpresso",
|
|
16
|
+
CLEARPAY = "clearpay",
|
|
17
|
+
CLEO = "cleo",
|
|
18
|
+
DANA = "dana",
|
|
19
|
+
EASYPAISA = "easypaisa",
|
|
20
|
+
FINVERO = "finvero",
|
|
21
|
+
FUPAY = "fupay",
|
|
22
|
+
GCASG = "gcasg",
|
|
23
|
+
GRABPAY = "grabpay",
|
|
24
|
+
HUMM = "humm",
|
|
25
|
+
KAKAOPAY = "kakaopay",
|
|
26
|
+
KLARNA = "klarna",
|
|
27
|
+
KUESKIPAY = "kueskipay",
|
|
28
|
+
LARA = "lara",
|
|
29
|
+
LATITUDEPAY = "latitudepay",
|
|
30
|
+
LAYBUY = "laybuy",
|
|
31
|
+
LIMEPAY = "limepay",
|
|
32
|
+
PACE = "pace",
|
|
33
|
+
PAGALEVE = "pagaleve",
|
|
34
|
+
PARIBAS = "paribas",
|
|
35
|
+
PAYWITHFOUR = "paywithfour",
|
|
36
|
+
PAYJUSTNOW = "payjustnow",
|
|
37
|
+
PAYTM = "paytm",
|
|
38
|
+
PAYBRIGHT = "paybright",
|
|
39
|
+
PAYFLEX = "payflex",
|
|
40
|
+
PAYRIGHT = "payright",
|
|
41
|
+
POSTPAY = "postpay",
|
|
42
|
+
RATEPAY = "ratepay",
|
|
43
|
+
RIVERTY = "riverty",
|
|
44
|
+
SCALAPAY = "scalapay",
|
|
45
|
+
SEZZLE = "sezzle",
|
|
46
|
+
SHOPBACK = "shopback",
|
|
47
|
+
SMARTPAY = "smartpay",
|
|
48
|
+
SOFINCO = "sofinco",
|
|
49
|
+
SPLITIT = "splitit",
|
|
50
|
+
TABBY = "tabby",
|
|
51
|
+
TAMARA = "tamara",
|
|
52
|
+
TENDOPAY = "tendopay",
|
|
53
|
+
TOUCHNGO = "touchngo",
|
|
54
|
+
TRIPLEA = "triplea",
|
|
55
|
+
TRUEMONEY = "truemoney",
|
|
56
|
+
TWISTO = "twisto",
|
|
57
|
+
UPLIFT = "uplift",
|
|
58
|
+
VALU = "valu",
|
|
59
|
+
ZEST = "zest",
|
|
60
|
+
ZIP = "zip",
|
|
61
|
+
ZOODPAY = "zoodpay",
|
|
62
|
+
BKASH = "bkash",
|
|
63
|
+
ERATY = "eraty",
|
|
64
|
+
PAYBYACCOUNT = "pay_by_account",
|
|
65
|
+
UPI = "upi"
|
|
66
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CheckoutProviderType } from "../checkout/checkoutProvider.type";
|
|
2
|
+
import { FraudProviderType } from "../fraud/fraudProvider.type";
|
|
3
|
+
import { UpiOptionsType } from "./UpiOptions.type";
|
|
4
|
+
import { ClickToPayOptionsType } from "@/click2pay/ClickToPayOptions.type";
|
|
5
|
+
import { NetworkTokenOptionsType } from "./NetworkTokenOptions.type";
|
|
6
|
+
export type DropInCheckoutProviderType = {
|
|
7
|
+
providerType: CheckoutProviderType;
|
|
8
|
+
providerId: string;
|
|
9
|
+
options: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
clientParameters: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type DropInFraudProviderType = {
|
|
17
|
+
providerType: FraudProviderType;
|
|
18
|
+
providerId: string;
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
stopPaymentOnFailure: boolean;
|
|
21
|
+
options: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type DropInThreeDsProviderType = {
|
|
26
|
+
providerType: string;
|
|
27
|
+
providerId: string;
|
|
28
|
+
};
|
|
29
|
+
export type DropInGooglePayOptionsType = {
|
|
30
|
+
providerId: string;
|
|
31
|
+
gateway: string;
|
|
32
|
+
googlePayGatewayMerchantId: string;
|
|
33
|
+
googlePayMerchantId: string;
|
|
34
|
+
googlePayMerchantName: string;
|
|
35
|
+
};
|
|
36
|
+
export type DropInApplePayOptionsType = {
|
|
37
|
+
providerId: string;
|
|
38
|
+
providerType: string;
|
|
39
|
+
lineItemLabel: string;
|
|
40
|
+
merchantIdentifier: string;
|
|
41
|
+
domainName: string;
|
|
42
|
+
displayName: string;
|
|
43
|
+
clientParameters: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export type DropInOptionsType = {
|
|
48
|
+
paypalButtonStyle: string;
|
|
49
|
+
paypalEnablePayIn4: string;
|
|
50
|
+
cardProviderId: string;
|
|
51
|
+
paypalProviderId: string;
|
|
52
|
+
payToProviderId: string;
|
|
53
|
+
threeDsProviderId: string;
|
|
54
|
+
threeDSEmail: string;
|
|
55
|
+
payToMaximumAmount: number;
|
|
56
|
+
payToDescription: string;
|
|
57
|
+
upiOptions: UpiOptionsType;
|
|
58
|
+
googlePayOptions: DropInGooglePayOptionsType;
|
|
59
|
+
applePayOptions: DropInApplePayOptionsType;
|
|
60
|
+
clickToPayEnabled?: boolean;
|
|
61
|
+
clickToPayOptions?: ClickToPayOptionsType;
|
|
62
|
+
cardFormStyle?: string;
|
|
63
|
+
tokenAuthenticationEnabled?: boolean;
|
|
64
|
+
createNetworkToken?: boolean;
|
|
65
|
+
networkTokenOptions?: NetworkTokenOptionsType;
|
|
66
|
+
vault?: boolean;
|
|
67
|
+
};
|
|
68
|
+
export type DropInPayToOptionsType = {
|
|
69
|
+
providerId: string;
|
|
70
|
+
maximumAmount: number;
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@payfurl/react-plugin",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "PayFURL React Plugin",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"main": "./dist/payfurl-react.umd.js",
|
|
11
|
+
"module": "./dist/payfurl-react.es.js",
|
|
12
|
+
"unpkg": "dist/payfurl-react.min.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/payfurl-react.es.js",
|
|
18
|
+
"require": "./dist/payfurl-react.umd.js"
|
|
19
|
+
},
|
|
20
|
+
"./style.css": "./dist/payfurl-react.css"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"build": "vite build && vue-tsc --emitDeclarationOnly",
|
|
25
|
+
"preview": "vite preview"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@payfurl/client": "^4.6.19"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": "^18.3.1",
|
|
32
|
+
"react-dom": "^18.3.1"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@eslint/js": "^9.13.0",
|
|
36
|
+
"@types/react": "^18.3.12",
|
|
37
|
+
"@types/react-dom": "^18.3.1",
|
|
38
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
39
|
+
"eslint": "^9.13.0",
|
|
40
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
41
|
+
"eslint-plugin-react-refresh": "^0.4.14",
|
|
42
|
+
"globals": "^15.11.0",
|
|
43
|
+
"typescript": "~5.6.2",
|
|
44
|
+
"typescript-eslint": "^8.11.0",
|
|
45
|
+
"vite": "^5.4.10",
|
|
46
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
47
|
+
"vite-plugin-dts": "^4.3.0"
|
|
48
|
+
}
|
|
49
|
+
}
|