stripe-payments

How to Apply a Coupon to a Stripe Customer

冷暖自知 提交于 2019-12-13 02:31:50
问题 I can't find any way to apply the coupon/discount to an existing customer who has a reoccurring payment. I'm using the stripe gem. I went ahead and created the coupon on the Stripe dashboard. I see no mention on how to add a coupon on their API page. I've tried this solution below but to no avail. cu = Stripe::Customer.retrieve("cus_XXX") cu.discount = "my_coupon_id" cu.save # returns Stripe::InvalidRequestError: (Status 400) Received unknown parameter: discount There must be some sort of

iOS Local Notification Action in Background

随声附和 提交于 2019-12-13 01:34:27
问题 I'm building an application that when a user receives a local notification it charges their credit card via stripe and parse, there is more to it then that but thats the start. When the notification is received inside the app everything works fine but when the notification is received outside the app the action is not complete. https://github.com/jackintosh7/Wake I would the action to be complete outside the app and also a view to be brought up when the user clicks on the notification. -

add the Stripe plugin to Nopcommerce

安稳与你 提交于 2019-12-13 00:07:44
问题 Stripe for 3.40 --> http://www.nopcommerce.com/p/1512/stripe-payment-plugin.aspx So I noticed that when I download the Stripe plugin off the Nopcommerce.com site that the Stripe plugin for Nopcommerce v3.4 does not contain a project file(.csproj) to add the project to Visual studio. Stripe for 2.65--> http://www.nopcommerce.com/p/638/stripe-payment-plugin.aspx So I went and downloaded the Stripe plugin for Nopcommerce v2.65. I noticed that this downloaded package does contain the Project file

Grails Stripe plugin error

不羁岁月 提交于 2019-12-12 19:27:19
问题 i'm using Stripe plugin for Grails ,Grails version 2.5.1 i can't make any successful transaction i always get There was an error processing your credit card. as shown in the controller , i noticed that Charge method is not defined as shown in the screenshot i tried to import com.stripe.Stripe but i'm getting unable to resolve class com.stripe.Stripe . Here is the action: def charge(String stripeToken, Double amount) { //Stripe.apiKey = grailsApplication.config.grails.plugins.stripe.secretKey

How to include stripe client api with symfony2. How to include files with no classes in symfony2

孤者浪人 提交于 2019-12-12 19:09:03
问题 I'm trying to include this file in my symfony2 project which is a file with a bunch of require statements. Unfortunately this, file doesn't contain a class. I don't want to manually write namespaces for all the included file that do contain the classes that I need so I was wondering how I can include this file in a way that it will also include the other files that I need. The file that I'm trying to include into symfony2 looks like this : <?php // Tested on PHP 5.2, 5.3 // This snippet (and

Stripe check for existing card

本小妞迷上赌 提交于 2019-12-12 19:06:27
问题 I'm looking to do the following sequence (using the Stripe API) when a customer submits a credit card: Check if the user has a stripe customer id in their meta If they don't, create a new customer, save the entered card to that user If the user already has a customer id, check if the entered card is already one of their saved cards. If it is, charge that card If it's not, add the new card to the customer object, and then charge that card. In my current code, Stripe is returning an invalid

didCreatePaymentResult stripeID is a card_ token, can't seem to save to customer

ⅰ亾dé卋堺 提交于 2019-12-12 17:12:22
问题 I have a swift iOS app which asks the user to their payment details for a payment in app and future payment. This uses the stripe SDK with Apple Pay and seems to all be set up correctly. I have the below method: func paymentContext(_ paymentContext: STPPaymentContext, didCreatePaymentResult paymentResult: STPPaymentResult, completion: @escaping STPErrorBlock) { orderToken = paymentResult.source.stripeID StripePaymentClient.setupAccount(token: orderToken) } With then the setupAccount method

Error with Stripe calls on Google App Engine even after upgrading to latest

六眼飞鱼酱① 提交于 2019-12-12 16:09:59
问题 I receive runtime errors like this when making Stripe calls such as stripe.Customer.create(email = email) APIError: Stripe no longer supports API requests made with TLS 1.0. Please initiate HTTPS connections with TLS 1.2 or later. You can learn more about this at https://stripe.com/blog/upgrading-tls. This error shows up only on the local development server, but not on production. I have of course upgraded my stripe library like this: pip install -t lib --upgrade stripe==1.19.1 To eliminate

Stripe Error: No signatures found matching the expected signature for payload

﹥>﹥吖頭↗ 提交于 2019-12-12 10:39:32
问题 I have a stripe webhook that call a Firebase function. In this function I need to verify that this request comes from Stripe servers. Here is the code : const functions = require('firebase-functions'); const bodyParser = require('body-parser'); const stripe = require("stripe")("sk_test_****"); const endpointSecret = 'whsec_****'; const app = require('express')(); app.use(bodyParser.json({ verify: function (req, res, buf) { var url = req.originalUrl; if (url.startsWith('/webhook')) { req

How to parse Stripe JSON response after credit card creation?

耗尽温柔 提交于 2019-12-12 10:24:58
问题 I want to save a Stripe card_id to my database based on the JSON response. I'm playing with the examples from the Stripe documentation right now: customer = Stripe::Customer.retrieve("cus_3Ek7h52yGbLpQo") customer.cards.create(:card => {:number => "4242424242424242", :exp_month => 10, :exp_year => 2014}) The JSON looks like this: #<Stripe::Card:0x3ff2f0191540> JSON: {"id":"card_3GHjrJqMgoyTNy","object":"card","last4":"4242","type":"Visa","exp_month":10,"exp_year":2014,"fingerprint":