36 lines
828 B
YAML
36 lines
828 B
YAML
id: api-paypal
|
|
|
|
info:
|
|
name: PayPal API Test
|
|
author: dwisiswant0
|
|
severity: info
|
|
reference:
|
|
- https://developer.paypal.com/docs/api/overview/
|
|
metadata:
|
|
max-request: 1
|
|
tags: token-spray,paypal
|
|
|
|
self-contained: true
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "https://api-m.sandbox.paypal.com/v1/identity/oauth2/userinfo?schema=paypalv1.1"
|
|
|
|
headers:
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{token}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: regex
|
|
negative: true
|
|
regex:
|
|
- "error(_description)?"
|
|
|
|
# digest: 4a0a004730450220316097ce4aff8b3acd0a539f16273572397fb3fc12375b821bee780a2a7424fd022100a770709957c50f5b0abd0caec3d87244a2d382ce65ae9a8a9ce7d74623bd93d9:922c64590222798bb761d5b6d8e72950
|