beam-community / stripity-stripe

An Elixir Library for Stripe
Other
966 stars 346 forks source link

support Link in payment method struct #717

Closed ericdude4 closed 2 years ago

ericdude4 commented 2 years ago

Link is a new Stripe product which I have early access to. It includes a new property in the payment method object which this library does not support. This PR adds support for the link property in the PaymentMethod struct.

Here is an example of a payment intent payload returned from Stripe with this field:

// GET payment_intent
{
    // ...
    "payment_method": {
        // ...
        "link": {
            "persistent_token": "<hidden>"
        }
    }
}
ericdude4 commented 2 years ago

@snewcomer Thanks! Will you create a new release with this update?