Giter Site home page Giter Site logo

Comments (3)

takeharu avatar takeharu commented on July 17, 2024 1

@ctrudeau-stripe,

I've solved the problem.

I did not have the switch to enable 3D Secure turned on in the dashboard settings menu.

I was able to get the dialog and continue the process successfully.

Thank you for your response.

from subscription-use-cases.

ctrudeau-stripe avatar ctrudeau-stripe commented on July 17, 2024

Hello @takeharu,

Have you configured the .env file with the products? This error will happen when there are no prices configured in Stripe.

  1. Create Products and Plans on Stripe

This sample requires a Price ID to create the subscription. Products and Plans are objects on Stripe that you use to model a subscription.

You can create Products and Prices in the Dashboard or with the API. Create a Price to run this sample and add it to your .env.

from subscription-use-cases.

takeharu avatar takeharu commented on July 17, 2024

Hello @ctrudeau-stripe,

Thanks for the reply.
But it seems to be a different problem.

I created a new product and set the environment variable PriceID (BASIC and PREMIUM) in the .env file.
But I get the same error.

If it were the problem you're talking about, 4242424242424242 should also cause an error, but it doesn't.

If I run it in node.js, I get the following error (I get the same message in ruby)

(node:88544) UnhandledPromiseRejectionWarning: \n
Error: Payment for this subscription requires additional user action before \n
it can be completed successfully.  \n
Please refer to the use of the `enable_incomplete_payments` parameter  \n
here: https://stripe.com/docs/billing/lifecycle#incomplete-opt-in
    at Function.generate (/fixed-price-subscriptions/server/node/node_modules/stripe/lib/Error.js:50:16)
    at IncomingMessage.<anonymous> (/fixed-price-subscriptions/server/node/node_modules/stripe/lib/StripeResource.js:168:39)
    at Object.onceWrapper (events.js:288:20)
    at IncomingMessage.emit (events.js:205:15)
    at endReadableNT (_stream_readable.js:1154:12)
    at processTicksAndRejections (internal/process/task_queues.js:74:11)

The response has a Status Code of 402 Payment Required

I don't know what enable_incomplete_payments means.

from subscription-use-cases.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.