From f6dd222a1d2a7a53d9b990801a42e3931ada5a32 Mon Sep 17 00:00:00 2001 From: Alexander Lyon Date: Fri, 8 Oct 2021 14:30:57 +0100 Subject: [PATCH 1/2] docs: add note on payment intent --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 0b0f677d2..757cfd3ea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,6 +55,10 @@ //! println!("{:?}", charges); // => List { data: [Charge { id: "ch_12345", .. }] } //! # } //! ``` +//! +//! > **A note about creating card tokens**: Stripe introduced the PaymentIntent api +//! > to replace the old token and charge API. This library only supports the former. To migrate, you can +//! > have a look at [the official migration guide](https://stripe.com/docs/payments/payment-intents/migration). #![allow(clippy::map_clone)] #![allow(clippy::large_enum_variant)] From f4ebb2761288351684f2b227a34b81567e5aa843 Mon Sep 17 00:00:00 2001 From: Alexander Lyon Date: Fri, 8 Oct 2021 14:36:45 +0100 Subject: [PATCH 2/2] docs: use intra-doc link --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 757cfd3ea..8534a8eb6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,7 @@ //! # } //! ``` //! -//! > **A note about creating card tokens**: Stripe introduced the PaymentIntent api +//! > **A note about creating card tokens**: Stripe introduced the [PaymentIntent](crate::PaymentIntent) api //! > to replace the old token and charge API. This library only supports the former. To migrate, you can //! > have a look at [the official migration guide](https://stripe.com/docs/payments/payment-intents/migration).