Gathering detailed insights and metrics for payu-core-pg-react
Gathering detailed insights and metrics for payu-core-pg-react
Gathering detailed insights and metrics for payu-core-pg-react
Gathering detailed insights and metrics for payu-core-pg-react
npm install payu-core-pg-react
Typescript
Module System
Node Version
NPM Version
75.1
Supply Chain
98.6
Quality
82.8
Maintenance
100
Vulnerability
99.6
License
JavaScript (86.31%)
Java (7.57%)
Objective-C (3.45%)
TypeScript (2.14%)
Ruby (0.43%)
C (0.11%)
Total Downloads
9,024
Last Day
5
Last Week
51
Last Month
180
Last Year
3,802
11 Commits
8 Watching
2 Branches
13 Contributors
Minified
Minified + Gzipped
Latest Version
1.2.7
Package Id
payu-core-pg-react@1.2.7
Unpacked Size
432.55 kB
Size
94.05 kB
File Count
57
NPM Version
9.0.0
Node Version
18.11.0
Publised On
24 Apr 2024
Cumulative downloads
Total Downloads
Last day
0%
5
Compared to previous day
Last week
59.4%
51
Compared to previous week
Last month
19.2%
180
Compared to previous month
Last year
-16.5%
3,802
Compared to previous year
2
React Native SDKs for Seamless Payment Integration
import
1 import PayUSdk from 'payu-core-pg-react';
1 2const handleResponse = (response) => { 3 console.log({response: response}); 4}; 5 6const handleError = (err) => { 7 Alert.alert('Error', JSON.stringify(err)); 8}; 9 10const paymentType = 'Net Banking'; 11 12const paymentData = { 13 key: apikey, 14 environment, 15 amount, 16 txnId, 17 phone, 18 email, 19 surl, 20 furl, 21 productInfo, 22 firstname, 23 salt, 24 paymentType, 25 bankCode, 26 }; 27 28PayUSdk.makePayment( 29 paymentData, 30 (response) => handleResponse, 31 (err) => handleError 32 ); 33
1 2const handleResponse = (response) => { 3 console.log({response: response}); 4}; 5 6const handleError = (err) => { 7 Alert.alert('Error', JSON.stringify(err)); 8}; 9 10const paymentType = 'Credit / Debit Cards'; 11 12const paymentData = { 13 key: apikey, 14 environment, 15 amount, 16 txnId, 17 phone, 18 email, 19 surl, 20 furl, 21 productInfo, 22 firstname, 23 salt, 24 paymentType, 25 nameOnCard, 26 cardNumber, 27 expiryYear, 28 expiryMonth, 29 CVV: cvv, 30 }; 31 32PayUSdk.makePayment( 33 paymentData, 34 (response) => handleResponse, 35 (err) => handleError 36 ); 37
1 2const handleResponse = (response) => { 3 console.log({response: response}); 4}; 5 6const handleError = (err) => { 7 Alert.alert('Error', JSON.stringify(err)); 8}; 9 10const paymentType = 'UPI'; 11 12const paymentData = { 13 environment, 14 amount, 15 key: apikey, 16 txnId, 17 phone, 18 email, 19 surl, 20 furl, 21 productInfo, 22 firstname, 23 salt, 24 paymentType, 25 vpa, 26 }; 27 28PayUSdk.makePayment( 29 paymentData, 30 (response) => handleResponse, 31 (err) => handleError 32 ); 33
1 2const handleResponse = (response) => { 3 console.log({response: response}); 4}; 5 6const handleError = (err) => { 7 Alert.alert('Error', JSON.stringify(err)); 8}; 9 10const paymentType = 'PayU Money'; 11 12const paymentData = { 13 environment, 14 amount, 15 key: apikey, 16 txnId, 17 phone, 18 email, 19 surl, 20 furl, 21 productInfo, 22 firstname, 23 salt, 24 paymentType, 25 }; 26 27PayUSdk.makePayment( 28 paymentData, 29 (response) => handleResponse, 30 (err) => handleError 31 ); 32
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 }; 8 9const options = await PayUSdk.fetchPaymentOptions(params); 10
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 }; 8 9const options = await PayUSdk.vas({ ...params, bankCode: 'AXIB' }); 10
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 }; 8 9 const response = await PayUSdk.checkIsDomestic({ 10 ...params, 11 cardNumber: '512345', 12 }); 13
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 }; 8 9 const response = await PayUSdk.getBinInfo({ 10 ...params, 11 cardNumber: '512345', 12 }); 13
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 }; 8 9 let endTime = new Date(); 10 11 const response = await PayUSdk.getTransactionInfo({ 12 ...params, 13 startTime: startTime.toISOString().slice(0, 19).replace('T', ' '), 14 endTime: endTime.toISOString().slice(0, 19).replace('T', ' '), 15 }); 16
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 }; 8 9 10 const response = await PayUSdk.getEMIDetails({ 11 ...params, 12 amount: '99', 13 }); 14
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 }; 8 9 10 const response = await PayUSdk.getCheckoutDetails({ 11 ...params, 12 amount: '99', 13 }); 14
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 }; 8 9 10 const response = await PayUSdk.checkOfferDetails(params); 11
1 2 const params = { 3 key: apikey, 4 environment, 5 salt, 6 }; 7 8 9 const response = await PayUSdk.getUserCards(params); 10
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 8 cardName, 9 cardMode, 10 cardType, 11 nameOnCard, 12 cardNo, 13 expiryMonth, 14 expiryYear, 15 duplicateCheck, 16 17 }; 18 19 20 const response = await PayUSdk.saveUserCard(params); 21
1 2 const params = { 3 key: apikey, 4 environment, 5 amount, 6 salt, 7 8 id: cardId 9 10 }; 11 12 13 const response = await PayUSdk.deleteStoredCard(params); 14
No vulnerabilities found.
No security vulnerabilities found.