stripe-payments

How to integrate Stripe payments gateway with Django Oscar?

旧街凉风 提交于 2019-12-22 08:48:13
问题 I am trying to integrate the Stripe payment gateway to Django oscar for an e-commerce site which sells physical goods like groceries online.I use python 3.6.3, Django 2.0, Django-oscar 1.6, stripe 1.82.2. Method 1 : So I followed this link in django-oscar groups: https://groups.google.com/forum/#!searchin/django-oscar/handle_payment$20override%7Csort:date/django-oscar/Cr8sBI0GBu0/PHRdXX2uFQAJ I have signed up for a stripe account and used my publishable key and test key to configure stripe

What is wrong with my coffeescript in Stripe?

拟墨画扇 提交于 2019-12-22 06:59:26
问题 I've been working on integrating Stripe into my web application, and it doesn't seem to be working. To help me along, I've been using Ryan Bates's Rails Cast on integrating Stripe. Whenever I try to run the payment form, I get an error saying that "There was a problem with my credit card". I think the problem lies in my coffeescript file, but perhaps I'm wrong. I've included the stripe user token as a part of my user model instead of placing it into its own subscription model. Here is the

Event or Methods for the Stripe Checkout Modal

风流意气都作罢 提交于 2019-12-22 03:54:27
问题 Is there any way to trigger an event when the Stripe Checkout modal is closed? There is about 0.5-1 second delay between the time that Stripe's modal closes and their response is delivered. In that time, a user might click away from the page etc. To address the issue, we can do something like disable all links or put an overlay ("cover-all") over the page that is removed only when Stripe is done processing. The problem is that there is no way to close that overlay if the person decides to

Exception Thrown From Service Not Being Caught in Controller

不羁的心 提交于 2019-12-22 02:05:17
问题 In my Grails service I have code like the following: def createCharge(chargeParams) { try { def charge = Charge.create(chargeParams) } catch (CardException e) { throw e } } From my controller I do the following: try { service.createCharge(chargeParams) } catch(CardException e) { } However, my controller is not catching the re-throwing of the CardException. If I wrap CardException in a RuntimeException via: throw new RuntimeException(e) and/or remove the signature from the catch to just catch

Please attach the payment method to this Customer before using it with a SetupIntent | Migrating stripe subscription to be SCA compliant

梦想的初衷 提交于 2019-12-22 01:29:22
问题 I have a subscription, I collect card details on signup with a 7 day trial, after which the subscription bills monthly. I have followed the documentation to create a subscription. Testing the flow with a fake card 4000002500003155 which requires setup, I encountered an issue. My setup is as follows. Frontend does stripe.createToken() Server does stripe.customers.update(customer_id, { source }) with token Server creates the subscription stripe.subscriptions.create({ customer: self.stripe

Transfer money from stripe account to other account

被刻印的时光 ゝ 提交于 2019-12-21 21:30:38
问题 I'm using this to charge a connected account the send the money to another account but I keep getting this error message. I keep getting this error message: You cannot supply a destination when charging a connected account. return stripe.charges.create({ amount: 1000, currency: "usd", source: customer_id, destination: { account: "acct_1BxnsfGGXo2wovzm" }, }); How can I do it? Thanks 回答1: Looking at the error message it seems the api believes you're using account debits where the destination

What is CONNECTED_STRIPE_ACCOUNT_ID? How to get it from android platform?

让人想犯罪 __ 提交于 2019-12-21 09:15:35
问题 I am working on Ride Sharing app and i choose Stripe as payment procedure. What happens in app that rider can tip to driver. For this i used this approach that, Rider will pay to the App's stripe account and then app will keep its percentage and then it will transfer remaining amount to driver's stripe account. So far everything is going good.App has successfully charged the rider but bit confused about transfering amount to driver's stripe account. I have looked into stripe documentation

how to use Stripe (stripe.js) and react-native

僤鯓⒐⒋嵵緔 提交于 2019-12-21 07:28:24
问题 I'm trying to find a good approach to using stripe with react-native. Preferably one that doesn't involve sending credit card details to my own backend or storing my stripe private key in the application. Any ideas welcome! thanks 回答1: I have not implemented this in React Native personally yet. In the app I am working on this will be ported over in the next few days but here is how we do it in the current app without any dependency on third party libraries and how we will implement in React

'No such token' error upon submitting payment request to Stripe

随声附和 提交于 2019-12-21 07:01:19
问题 I'm setting up payments using the Stripe API to allow a user to log into their Stripe account on an iPad and accept payments from anyone. To do this, I'm using Stripe Connect to log them in and save their account id, then I'm using the STPPaymentCardTextField to obtain credit card details, then using the Stripe iOS SDK I'm submitting a card (with the test card info - 4242...) and getting back a token via createTokenWithCard . This successfully returns a token. At this point I need to submit

Stripe Connect - retrieving access token

て烟熏妆下的殇ゞ 提交于 2019-12-21 05:11:34
问题 I am trying to set up Stripe Connect for a rails 3.2.13 app. I have directed the user to Stripe and received back the authorization code from Stripe: HTTP/1.1 302 Found Location: http://localhost:3000/yourshop/stripe?scope=read_write&state=1234&code=AUTHORIZATION_CODE The next step involves making a POST request to receive the access_token via the access_token_url, per Stripe documentation: curl -X POST https://connect.stripe.com/oauth/token \ -d client_secret=sk_test_code \ -d code