Common Design Patterns at Stripe

Mikes Notes

An excellent series of articles on designing APIs from Stripe, The Payment Service Provider. There are detailed examples and coding conventions.

Designing APIs for Humans Series' Articles by Paul Asjes (Stripe Dev)


$pi = $stripe->paymentIntents->create([
  'amount' => 1000,
  'currency' => 'usd',
  // Without prefixes, we'd have to supply a 'type'
  'payment_method' => [
    'type' => 'card',
    'id' => '1LaRQ7GUcADgqoEMV11wEUxU'


Stripe also has superb Developer Docs, which are a helpful format to start with when designing Pipi Docs, especially for the API.


Other stuff

No comments:

Post a Comment