#thenastypasty_api

1 messages ¡ Page 1 of 1 (latest)

latent mortarBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1230794949629444197

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

runic compassBOT
dapper mirage
#

Hi! that means you're using a SetupIntent when you should be using a PaymentIntent.

vale mesa
#

Hi, in the Cashier tutorial there is no paymentIntent

#

There is only a setupIntent in the lib

#

The strange thing is it worked already

dapper mirage
#

not sure what tutorial that is but in general the problem here is because you do this

  • create SetupIntent to save the card details (this is what shows the 0.00 3D Secure page because it's a setup not a payment)
  • create customer
  • create Invoice
  • pay Invoice on the backend
#

the correct approach is to just create the Customer and Invoice first, and then confirm the Invoice's PaymentIntent on the frontend, which will do 3D Secure if needed and shows the amount of the payment.

vale mesa
#

Thank you I will look into this

#

Is this also causing: [Report Only] Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-1bd1ss83rhoRESXnUSD+xUzVPZzKrKQPYKkWOj5TJIc='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.

dapper mirage
#

I think you can ignore that, it's not causing any user-facing problem

vale mesa
#

Maybe you can tell me, what I have to change now? Should I remove setupIntent?

dapper mirage
latent mortarBOT