← all adapters

paypal-style

simulates PayPal Orders API v2

restadapter v0.1.07 routes

use it

# add to stunt.yaml
services:
  paypal:
    adapter: embedded:paypal-style

# then
$ stunt up

The embedded: source extracts this adapter from the binary — no git clone, fully offline.

backing stores

orderscapturesrefundsaccess_tokens

routes (7)

POST/v1/oauth2/token
POST/v2/checkout/orders
GET/v2/checkout/orders/{id}
POST/v2/checkout/orders/{id}/capture
POST/v2/checkout/orders/{id}/authorize
GET/v2/payments/captures/{id}
POST/v2/payments/captures/{capture_id}/refund