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/
|
2021-10-23 04:13:04 +00:00
|
|
|
tags: token-spray,paypal
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2021-10-23 04:13:04 +00:00
|
|
|
|
|
|
|
self-contained: true
|
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"
|
|
|
|
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:
|
|
|
|
- "error(_description)?"
|