stripe-payments

How can I make sure the subscription is paid before allowing the user to use my app? [closed]

只谈情不闲聊 提交于 2020-05-17 04:12:52
问题 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 9 days ago . I am working on an intelligent cloud platform able to analyse data of the users. I am going to use Stripe payments and subscription plan. Everything seems to be working properly, but I have some uncertainty. I wonder how can I check whether the subscription has been paid before

Laravel Cashier + Stripe: No Such Customer

社会主义新天地 提交于 2020-05-15 09:16:27
问题 I am working on developing a subscription for a web application using Laravel Cashier and Stripe. I'm using Stripe v3 JavaScript API and using the card elements to generate the Stripe token. The Stripe token is being generated, and if you look in the Stripe dashboard a customer is created. Additionally, a stripe id is being saved in the user database. However, when I try and subscribe the user to a plan with the following code: $user->newSubscription($planId, $planId)->create($stripeToken, [

Angular 8: Stripe elements nested inside Nebular Components

做~自己de王妃 提交于 2020-04-30 06:49:50
问题 Problem: I'm running into an issue where I am unable to tokenize the credit card information posted inside of the card stripe element I am mounting to my component. I am currently using the Nebular stepper component (https://akveo.github.io/nebular/docs/components/stepper/overview#nbsteppercomponent) and have a nested child component with the following ts code: public async fetchCardInput(): Promise<any> { let address: Address = this.ccAddress.fetchAddressData(); let name = this

Stripe create token error `The customer must have an active payment source attached`

眉间皱痕 提交于 2020-04-18 06:11:17
问题 I'm trying to clone the customers stored payment information and use in the connected account by creating a token like this: exports.createToken = functions.https.onRequest(async (req, res) => { var customerId = req.body.customer_id var accountId = req.body.account_id console.log(req.id) stripe.tokens.create( { customer: customerId }, { stripeAccount: accountId }, // id of the connected account function(err, token) { // callback console.log("token:", token) console.log("error:", err) } ); })

Django/Python Stripe stripeToken doesn't seem to load/work properly

为君一笑 提交于 2020-04-18 05:36:12
问题 I am trying to charge a subscription on Stripe API in test-mode and my charge keeps getting declined. Everything seems to be working fine, except I cannot retrieve the "stripeToken" via POST. I tested this by printing the various variables I need and they all work fine... but when it comes to printing stripeToken, I get this error: MultiValueDictKeyError at /memberships/payment/ 'stripeToken' Request Method: POST Request URL: http://127.0.0.1:8000/memberships/payment/ Django Version: 2.2

Session Changed In Webhook

孤人 提交于 2020-04-18 04:01:30
问题 Im building a webshop using Stripe and .Net, and I'm having some problems with the session not persisting in my webhook and as a result the webhook is unable to get cart or customer information. My add to cart method looks like this: var cartList = new List<CartProduct>(); var stringObj = _session.GetString("cart"); /* Logic for deserializing stringObj into List<CartProduct> */ stringObj = JsonConvert.SerializeObject(cartList); _session.SetString("cart", stringObj); If I look at _session I

Session Changed In Webhook

五迷三道 提交于 2020-04-18 04:00:01
问题 Im building a webshop using Stripe and .Net, and I'm having some problems with the session not persisting in my webhook and as a result the webhook is unable to get cart or customer information. My add to cart method looks like this: var cartList = new List<CartProduct>(); var stringObj = _session.GetString("cart"); /* Logic for deserializing stringObj into List<CartProduct> */ stringObj = JsonConvert.SerializeObject(cartList); _session.SetString("cart", stringObj); If I look at _session I

How to properly load global variable with async values(Reactjs)?

旧巷老猫 提交于 2020-04-17 22:10:28
问题 I'm trying to solve this problem that I can't seem to solve with stripe's API's So when creating a charge with their new version API they say that in the front end we should call loadStripe('publishable Key',{'Connected account ID'}) and set that to a const. now I dont undestand how are we supposed to get the ID that is stored somewhere say a database? As a reference please look at this and here (In Step 3 ...). What I'm currently doing is something like this import React from "react"; import

How to implement 3d secure authentication in stripe?

可紊 提交于 2020-04-17 21:15:17
问题 //Code Sample <?php session_start(); require_once("F:\wamp64\www\lib\stripe-php-7.27.2\init.php"); \Stripe\Stripe::setApiKey('sk_test_vXXXXXXXXXXXXXlmwqE'); $name = $_SESSION['namex']; $email = $_SESSION['emailx']; $phno = $_SESSION['mobilex']; $purpose = $_SESSION['purposex']; $amount = $_SESSION['amountx']; $txn = $_SESSION['txnn']; $token = $_POST['stripeToken']; $fee = $amount*0.02; $tax = $fee*0.18; $famt = round($amount+$fee+$tax); // payment information $charge = \Stripe\PaymentIntent:

How to implement 3d secure authentication in stripe?

南笙酒味 提交于 2020-04-17 21:14:29
问题 //Code Sample <?php session_start(); require_once("F:\wamp64\www\lib\stripe-php-7.27.2\init.php"); \Stripe\Stripe::setApiKey('sk_test_vXXXXXXXXXXXXXlmwqE'); $name = $_SESSION['namex']; $email = $_SESSION['emailx']; $phno = $_SESSION['mobilex']; $purpose = $_SESSION['purposex']; $amount = $_SESSION['amountx']; $txn = $_SESSION['txnn']; $token = $_POST['stripeToken']; $fee = $amount*0.02; $tax = $fee*0.18; $famt = round($amount+$fee+$tax); // payment information $charge = \Stripe\PaymentIntent: