Pay.jp OpenAPI spec & rust binding
based on arlyon/async-stripe by Alexander Lyon
Example
This asynchronous example uses Tokio
to create
a Payjp Customer. Your Cargo.toml
could
look like this:
= { = "1", = ["full"] }
= { = "0.28", = ["runtime-tokio-hyper"] }
= { = "0.28", = ["customer"] }
And then the code:
async
A full list of examples can be found in the examples.
Relevant Crates
Client
The main entry point is the payjp-rust
crate which provides a client for making Payjp
API requests.
payjp-rust
is compatible with the async-std
and tokio
runtimes and the native-tls
and rustls
backends. When adding the dependency, you must select a runtime feature.
Installation
[]
= { = "0.31", = ["runtime-tokio-hyper"] }
Feature Flags
supports the following features combining runtime and TLS choices:
runtime-tokio-hyper
runtime-tokio-hyper-rustls
runtime-tokio-hyper-rustls-webpki
runtime-blocking
runtime-blocking-rustls
runtime-blocking-rustls-webpki
runtime-async-std-surf