Skip to content

Passing the token from stripe.js #125

@vu3rdd

Description

@vu3rdd

I am trying to call the stripe charge API. The frontend using the stripe.js gives me a token, which needs to be passed as source parameter to the API. Looking at the Web.Stripe.Charge module, I wonder how to do the equivalent step with the older version of the API. In the older version's documentation, there is an equivalent parameter called card. But I don't see how to pass it, the (Charge)[https://hackage.haskell.org/package/stripe-core-2.5.0/docs/Web-Stripe-Charge.html#t:Charge] data type do not seem to have a way to accept the token. Is there anything I am missing? Would appreciate any help. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions