Stripe API client for OCaml
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+21 -4
+14 -4
README.md
··· 6 6 7 7 ## Installation 8 8 9 + Install with opam: 10 + 11 + ```sh 12 + $ opam install stripe 9 13 ``` 10 - opam install stripe 14 + 15 + If opam cannot find the package, it may not yet be released in the public 16 + `opam-repository`. Add the overlay repository, then install it: 17 + 18 + ```sh 19 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 20 + $ opam update 21 + $ opam install stripe 11 22 ``` 12 23 13 24 ## Usage 14 25 15 26 ```ocaml 16 - let cfg = Stripe.config ~secret_key:"sk_test_..." session in 17 - 27 + let cfg = Stripe.config ~secret_key:"sk_test_..." session 18 28 (* Create a customer and subscription *) 19 - let customer = Stripe.Customer.create cfg ~email:"user@example.com" () in 29 + let customer = Stripe.Customer.create cfg ~email:"user@example.com" () 20 30 let sub = Stripe.Subscription.create cfg 21 31 ~customer:customer.id ~price:"price_..." () in 22 32 Printf.printf "Subscription %s: %s\n" sub.id sub.status;
+4
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files README.md) 7 + (libraries stripe))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 3 4 (name stripe) 4 5 ··· 25 26 (json (>= 0.1)) 26 27 (digestif (>= 1.0)) 27 28 (alcotest :with-test) 29 + (mdx :with-test) 28 30 loc))
+1
stripe.opam
··· 17 17 "json" {>= "0.1"} 18 18 "digestif" {>= "1.0"} 19 19 "alcotest" {with-test} 20 + "mdx" {with-test} 20 21 "loc" 21 22 "odoc" {with-doc} 22 23 ]