2021-10-23 04:13:04 +00:00
|
|
|
id: api-paypal
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: PayPal API Test
|
|
|
|
author: dwisiswant0
|
|
|
|
severity: info
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://developer.paypal.com/docs/api/overview/
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: token-spray,paypal
|
2021-10-23 04:13:04 +00:00
|
|
|
|
|
|
|
self-contained: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-10-23 04:13:04 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "https://api-m.sandbox.paypal.com/v1/identity/oauth2/userinfo?schema=paypalv1.1"
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2021-10-23 04:13:04 +00:00
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
|
2021-10-24 01:27:09 +00:00
|
|
|
matchers-condition: and
|
2021-10-23 04:13:04 +00:00
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
2021-10-24 01:27:09 +00:00
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
negative: true
|
|
|
|
regex:
|
2023-10-14 11:27:55 +00:00
|
|
|
- "error(_description)?"
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a004730450220316097ce4aff8b3acd0a539f16273572397fb3fc12375b821bee780a2a7424fd022100a770709957c50f5b0abd0caec3d87244a2d382ce65ae9a8a9ce7d74623bd93d9:922c64590222798bb761d5b6d8e72950
|