@zkp2p/providers 7.8.6 → 7.8.8

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.
@@ -18,7 +18,7 @@
18
18
  "recipient": "$.payment_history_inputs_row.recipient.cashtag",
19
19
  "amount": "$.payment_history_inputs_row.payment.amount.amount",
20
20
  "date": "$.payment_history_inputs_row.payment.display_date",
21
- "paymentId": "$.payment_history_inputs_row.payment.token",
21
+ "paymentId": "$.payment_history_inputs_row.payment.history_data.transaction_id",
22
22
  "currency": "$.payment_history_inputs_row.payment.amount.currency_code"
23
23
  }
24
24
  },
@@ -33,7 +33,7 @@
33
33
  },
34
34
  {
35
35
  "type": "jsonPath",
36
- "value": "$.activity_rows[{{INDEX}}].payment_history_inputs_row.payment.token"
36
+ "value": "$.activity_rows[{{INDEX}}].payment_history_inputs_row.payment.history_data.transaction_id"
37
37
  },
38
38
  {
39
39
  "type": "jsonPath",
@@ -91,7 +91,7 @@
91
91
  },
92
92
  {
93
93
  "type": "regex",
94
- "value": "\"token\":\"(?<paymentId>[^\"]+)\""
94
+ "value": "\"transaction_id\":\"(?<paymentId>[^\"]+)\""
95
95
  },
96
96
  {
97
97
  "type": "regex",
@@ -116,7 +116,7 @@
116
116
  "xPath": ""
117
117
  },
118
118
  {
119
- "jsonPath": "$.activity_rows[{{INDEX}}].payment_history_inputs_row.payment.token",
119
+ "jsonPath": "$.activity_rows[{{INDEX}}].payment_history_inputs_row.payment.history_data.transaction_id",
120
120
  "xPath": ""
121
121
  },
122
122
  {
@@ -106,5 +106,25 @@
106
106
  {
107
107
  "jsonPath": "$.data.p2p.p2p_activity.pay_friend.id"
108
108
  }
109
- ]
109
+ ],
110
+ "mobile": {
111
+ "includeAdditionalCookieDomains": [],
112
+ "additionalClientOptions": {
113
+ "cipherSuites": [
114
+ "TLS_CHACHA20_POLY1305_SHA256",
115
+ "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
116
+ "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
117
+ ]
118
+ },
119
+ "useExternalAction": true,
120
+ "userAgent": {
121
+ "android": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15",
122
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Safari/605.1.15"
123
+ },
124
+ "external": {
125
+ "actionLink": "https://app.chime.com/link/qr?u={{RECIPIENT_ID}}",
126
+ "appStoreLink": "https://apps.apple.com/us/app/chime-mobile-banking/id836215269",
127
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.onedebit.chime&hl=en_US"
128
+ }
129
+ }
110
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/providers",
3
- "version": "7.8.6",
3
+ "version": "7.8.8",
4
4
  "description": "Provider JSON templates for ZKP2P",
5
5
  "scripts": {
6
6
  "start": "node index.js"
@@ -0,0 +1,89 @@
1
+ {
2
+ "actionType": "register_paypal",
3
+ "proofEngine": "reclaim",
4
+ "authLink": "https://www.paypal.com/myaccount/profile/",
5
+ "url": "https://www.paypal.com/myaccount/profile/home/api/user",
6
+ "method": "GET",
7
+ "body": "",
8
+ "metadata": {
9
+ "platform": "paypal",
10
+ "urlRegex": "^https://www.paypal.com/myaccount/profile/home/api/user\\?locale\\.x=[^&]+&country\\.x=[A-Z]{2}(?:&.*)?$",
11
+ "method": "GET",
12
+ "fallbackUrlRegex": "",
13
+ "fallbackMethod": "",
14
+ "preprocessRegex": "",
15
+ "transactionsExtraction": {
16
+ "transactionJsonPathListSelector": "",
17
+ "transactionJsonPathSelectors": {
18
+ "email": "$.data.emails.emailPreference.email",
19
+ "paypalMeLink": "$.data.paypalMe.link"
20
+ }
21
+ },
22
+ "proofMetadataSelectors": [
23
+ {
24
+ "type": "jsonPath",
25
+ "value": "$.data.emails.emailPreference.email"
26
+ },
27
+ {
28
+ "type": "jsonPath",
29
+ "value": "$.data.paypalMe.link"
30
+ }
31
+ ]
32
+ },
33
+ "paramNames": [],
34
+ "paramSelectors": [],
35
+ "skipRequestHeaders": [
36
+ "Cookie",
37
+ "Accept-Encoding"
38
+ ],
39
+ "secretHeaders": [
40
+ "Cookie"
41
+ ],
42
+ "responseMatches": [
43
+ {
44
+ "type": "regex",
45
+ "value": "(?<email>[^\"\\s]*@[^\"\\s]*)"
46
+ },
47
+ {
48
+ "type": "regex",
49
+ "value": "paypal\\.me\\/(?<paypalUsername>[^\"\\/\\s]+)"
50
+ }
51
+ ],
52
+ "responseRedactions": [
53
+ {
54
+ "jsonPath": "$.data.emails.emailPreference.email",
55
+ "xPath": ""
56
+ },
57
+ {
58
+ "jsonPath": "$.data.paypalMe.link",
59
+ "xPath": ""
60
+ }
61
+ ],
62
+ "mobile": {
63
+ "includeAdditionalCookieDomains": [],
64
+ "additionalClientOptions": {
65
+ "cipherSuites": [
66
+ "TLS_CHACHA20_POLY1305_SHA256",
67
+ "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
68
+ "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
69
+ ]
70
+ },
71
+ "userAgent": {
72
+ "android": "Mozilla/5.0 (Linux; Android 13; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.207 Mobile Safari/537.36",
73
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15"
74
+ },
75
+ "useExternalAction": true,
76
+ "external": {
77
+ "actionLink": "paypal://",
78
+ "appStoreLink": "https://apps.apple.com/us/app/paypal-pay-send-save/id283646709",
79
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.paypal.android.p2pmobile&hl=en_US"
80
+ },
81
+ "login": {
82
+ "usernameSelector": "#email, input[name=\"login_email\"][type=\"email\"]",
83
+ "passwordSelector": "#password, input[name=\"login_password\"][type=\"password\"]",
84
+ "nextSelector": "#btnNext, button[name=\"btnNext\"][type=\"submit\"]",
85
+ "submitSelector": "#btnLogin, button[name=\"btnLogin\"], button.actionContinue[value=\"Login\"], button[value=\"Login\"][type=\"submit\"]",
86
+ "revealTimeoutMs": 5000
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "actionType": "transfer_business_paypal",
3
+ "proofEngine": "reclaim",
4
+ "authLink": "https://www.paypal.com/mep/unifiedtransactions/?filter=0&query=",
5
+ "url": "https://www.paypal.com/activity/api/payment/{{PAYMENT_ID}}",
6
+ "method": "GET",
7
+ "body": "",
8
+ "metadata": {
9
+ "platform": "paypal",
10
+ "urlRegex": "^https://www.paypal.com/unifiedtransactions/v1/transactions$",
11
+ "method": "POST",
12
+ "fallbackUrlRegex": "",
13
+ "fallbackMethod": "",
14
+ "preprocessRegex": "",
15
+ "transactionsExtraction": {
16
+ "transactionJsonPathListSelector": "$.transactions",
17
+ "transactionJsonPathSelectors": {
18
+ "recipient": "$.name",
19
+ "amount": "$.gross",
20
+ "date": "$.createTime",
21
+ "paymentId": "$.id",
22
+ "currency": "$.currency",
23
+ "type": "$.description"
24
+ }
25
+ },
26
+ "proofMetadataSelectors": [
27
+ {
28
+ "type": "jsonPath",
29
+ "value": "$.transactions[{{INDEX}}].id"
30
+ }
31
+ ]
32
+ },
33
+ "paramNames": [
34
+ "PAYMENT_ID"
35
+ ],
36
+ "paramSelectors": [
37
+ {
38
+ "type": "jsonPath",
39
+ "value": "$.transactions[{{INDEX}}].id"
40
+ }
41
+ ],
42
+ "skipRequestHeaders": [
43
+ "Cookie",
44
+ "Accept-Encoding"
45
+ ],
46
+ "secretHeaders": [
47
+ "Cookie"
48
+ ],
49
+ "responseMatches": [
50
+ {
51
+ "type": "regex",
52
+ "value": "(?<recvId>[^\"\\s]*@[^\"\\s]*)"
53
+ },
54
+ {
55
+ "type": "regex",
56
+ "value": "\\$(?<amt>[0-9.]+)"
57
+ },
58
+ {
59
+ "type": "regex",
60
+ "value": "\"grossAmt\":\"[^\\\"]*[0-9.]+[^A-Z]*(?<curr>[A-Z]+)"
61
+ },
62
+ {
63
+ "type": "regex",
64
+ "value": "\"paymentStatusActual\":\"(?<status>[^\"]+)"
65
+ },
66
+ {
67
+ "type": "regex",
68
+ "value": "(?<date>[A-Z][a-z]+ [0-9]{1,2}, [0-9]{4}[^\"]*)"
69
+ }
70
+ ],
71
+ "responseRedactions": [
72
+ {
73
+ "jsonPath": "$.data.data.data.NameEmailPaidBy.CounterPartyContactModelData.email",
74
+ "xPath": ""
75
+ },
76
+ {
77
+ "jsonPath": "$.data.data.data.TDHeader.grossAmt",
78
+ "xPath": ""
79
+ },
80
+ {
81
+ "jsonPath": "$.data.data.data.TDHeader.paymentStatusActual",
82
+ "xPath": ""
83
+ },
84
+ {
85
+ "jsonPath": "$.data.data.data.TDHeader.date",
86
+ "xPath": ""
87
+ }
88
+ ],
89
+ "mobile": {
90
+ "includeAdditionalCookieDomains": [],
91
+ "additionalClientOptions": {
92
+ "cipherSuites": [
93
+ "TLS_CHACHA20_POLY1305_SHA256",
94
+ "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256",
95
+ "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
96
+ ]
97
+ },
98
+ "userAgent": {
99
+ "android": "Mozilla/5.0 (Linux; Android 13; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.6367.207 Mobile Safari/537.36",
100
+ "ios": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15"
101
+ },
102
+ "useExternalAction": true,
103
+ "external": {
104
+ "actionLink": "paypal://",
105
+ "appStoreLink": "https://apps.apple.com/us/app/paypal-pay-send-save/id283646709",
106
+ "playStoreLink": "https://play.google.com/store/apps/details?id=com.paypal.android.p2pmobile&hl=en_US"
107
+ },
108
+ "login": {
109
+ "usernameSelector": "#email, input[name=\"login_email\"][type=\"email\"]",
110
+ "passwordSelector": "#password, input[name=\"login_password\"][type=\"password\"]",
111
+ "nextSelector": "#btnNext, button[name=\"btnNext\"][type=\"submit\"]",
112
+ "submitSelector": "#btnLogin, button[name=\"btnLogin\"], button.actionContinue[value=\"Login\"], button[value=\"Login\"][type=\"submit\"]",
113
+ "revealTimeoutMs": 5000
114
+ }
115
+ }
116
+ }
package/providers.json CHANGED
@@ -10,7 +10,7 @@
10
10
  { "id": "mercadopago", "files": ["mercadopago/transfer_mercadopago.json"] },
11
11
  { "id": "mercury", "files": ["mercury/mercury-wires.json"] },
12
12
  { "id": "monzo", "files": ["monzo/transfer_monzo.json"] },
13
- { "id": "paypal", "files": ["paypal/transfer_paypal.json"] },
13
+ { "id": "paypal", "files": ["paypal/transfer_paypal.json", "paypal/register_paypal.json", "paypal/transfer_business_paypal.json"] },
14
14
  { "id": "revolut", "files": ["revolut/transfer_revolut.json"] },
15
15
  { "id": "royalbankcanada", "files": ["royalbankcanada/transfer_interac.json"] },
16
16
  { "id": "usbank", "files": ["usbank/transfer_zelle.json"] },