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
|
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
requests:
|
|
|
|
- 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)?"
|