stripe-payments

Stripe events: How to capture the product that was successfully paid with Stripe events and a webhook?

风格不统一 提交于 2021-02-10 20:01:38
问题 My website's users will buy credits using Stripe's single-payment workflow with a checkout session. They can buy single credits or credit packages, like 10 credits package at discount price. After a successfully payment I want to capture the event with a webhook and update the user balance according to the product and quantity paid by the user. I'm currently tracking payment_intent.succeeded events and I can see payment and charge information however I can't find any information related to

asp.net core 3.1 getting current identity user within stripe HttpPost(“webhook”) returns NULL

旧街凉风 提交于 2021-02-10 16:15:48
问题 I've integrated stripe checkout payments in my website according to stripe's example Everything works fine. I could verify webhooks are working with stripe CLI and also using ngrok, tunneling my localhost . Now I've started implementing interaction with the identity database. I wanto to store there the stripe session.CustomerId after the webhook has fired checkout.session.completed . For that I need to access my Identity database. My code is: [HttpPost("webhook")] public async Task

asp.net core 3.1 getting current identity user within stripe HttpPost(“webhook”) returns NULL

霸气de小男生 提交于 2021-02-10 16:13:19
问题 I've integrated stripe checkout payments in my website according to stripe's example Everything works fine. I could verify webhooks are working with stripe CLI and also using ngrok, tunneling my localhost . Now I've started implementing interaction with the identity database. I wanto to store there the stripe session.CustomerId after the webhook has fired checkout.session.completed . For that I need to access my Identity database. My code is: [HttpPost("webhook")] public async Task

Unable to retrieve a session's variable values in a Stripe webhook

两盒软妹~` 提交于 2021-02-08 11:22:28
问题 I am setting up a Stripe subscription webhook in my website. I followed through the documentation and the webhook is now set in my website. Now I am looking to update a record on my website's database where a column on the record is set to another value after one of my users subscribes to my membership plan. I tried to retrieve a session value in the session PHPSESSID where it contains an email address. Using the SQL 'WHERE' clause, I tried the following: $sql = "UPDATE xxxxxx SET Plan =

Stripe Checkout Beta: Avoid creating new customer for every payment

狂风中的少年 提交于 2021-02-08 08:24:00
问题 I'm building a Rails application using Stripe Checkout Beta. For this, I'm creating a Stripe::Checkout::Session on the server, use redirectToCheckout on the frontend and then wait for the webhook coming in with the type checkout_beta.session_succeeded telling me that the payment was fulfilled. This works fine, but: For every payment, Stripe creates a new customer - which is not what I want. If an existing customer pays a second time, Stripe should not create a new customer, the new payment

Stripe Checkout Beta: Avoid creating new customer for every payment

梦想的初衷 提交于 2021-02-08 08:23:16
问题 I'm building a Rails application using Stripe Checkout Beta. For this, I'm creating a Stripe::Checkout::Session on the server, use redirectToCheckout on the frontend and then wait for the webhook coming in with the type checkout_beta.session_succeeded telling me that the payment was fulfilled. This works fine, but: For every payment, Stripe creates a new customer - which is not what I want. If an existing customer pays a second time, Stripe should not create a new customer, the new payment

Rewrite HTTP to HTTPS Django

一世执手 提交于 2021-02-08 07:29:34
问题 I currently have a Django web server where I need to have users access through HTTPS. I went through this link Django HTTP to HTTPS and understand I need to implement a rewrite rule but am unsure about which file to modify. Here is the code snippet in nginx: server { listen 80; rewrite ^(.*) https://$host$1 permanent; } Although, I am confused as to where this would be placed. Any help would be greatly appreciated! Reason for all of this is I am implementing an iOS e-commerce application that

Stripe API on Xamarin.Forms [closed]

若如初见. 提交于 2021-02-08 04:59:25
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Improve this question Has anyone here tried integrating the Stripe API on Xamarin.Forms? I've been looking through the internet and I can't find any resources about it. I just started training on Xamarin and I don't know much. It would be very nice if someone could me with this

Android Stripe Connect WebView - Create Account Form NOT loading

╄→尐↘猪︶ㄣ 提交于 2021-02-05 12:05:11
问题 As is known, there is no Stripe Connect feature for Android unfortunately so I'm following a somewhat known workaround using a webview like this one and this one. I'm trying to get my Webview for Stripe Connect to work however the form to fill out for creating a Stripe Connect Account doesn't load, only the top portion does. See snippet#1 . However, if I open up my chrome browser on my android emulator, the entire form loads(form inside red box). See snippet#2 I have javascript enabled but it

Android Stripe Connect WebView - Create Account Form NOT loading

喜欢而已 提交于 2021-02-05 12:04:40
问题 As is known, there is no Stripe Connect feature for Android unfortunately so I'm following a somewhat known workaround using a webview like this one and this one. I'm trying to get my Webview for Stripe Connect to work however the form to fill out for creating a Stripe Connect Account doesn't load, only the top portion does. See snippet#1 . However, if I open up my chrome browser on my android emulator, the entire form loads(form inside red box). See snippet#2 I have javascript enabled but it