stripe-payments

Firebase Cloud Functions - Stripe Connect Webhook not firing

落爺英雄遲暮 提交于 2021-02-05 11:43:31
问题 I'm trying to set up my stripe webhooks to fire invoking a firebase cloud function automatically whenever a Stripe Connect account is created, updated, or anything at this point. It only fires if I manually go to the Stripe Dashboard > Webhooks and hit the "send test webhook button". so far what I've done: 1) created a Stripe Connect Webhook: 2) set up Webhook endpoint with firebase URL 3) set up node.js Firebase Cloud function to fire whenever stripe's webhook pings the Firebase URL. const

Only one element of type cardNumber can be created

心不动则不痛 提交于 2021-02-05 06:31:26
问题 I am trying to display my stripe component, but I am getting this error: IntegrationError: Only one element of type cardNumber can be created. I don't know why, since I'm only using it once in my entire app Any ideas? This is my index import ReactDOM from 'react-dom'; import App from './App'; import * as serviceWorker from './serviceWorker'; import { loadStripe } from "@stripe/stripe-js"; import { Elements } from "@stripe/react-stripe-js"; import MyComponent from './components/StripeComponent

Stripe: add free days to a subscription

扶醉桌前 提交于 2021-02-05 05:10:24
问题 Is it possible to add free days to an active subscription on Stripe? I'd like to do it in order to create a referral program: when a user refers someone, he gets 10 free days. I think a good way to do it would be to update the current_period_end var, but I can't find how to do it in the doc. For example: Bob is subscribed and will be charged on the 15th of this month He refers Alice He gets 10 free days on his account, and his next billing date is now on the 25th 回答1: I believe the closest

Stripe: add free days to a subscription

限于喜欢 提交于 2021-02-05 05:03:52
问题 Is it possible to add free days to an active subscription on Stripe? I'd like to do it in order to create a referral program: when a user refers someone, he gets 10 free days. I think a good way to do it would be to update the current_period_end var, but I can't find how to do it in the doc. For example: Bob is subscribed and will be charged on the 15th of this month He refers Alice He gets 10 free days on his account, and his next billing date is now on the 25th 回答1: I believe the closest

Need some direction to implement Sofort (a payment gateway) using Stripe in Android

北城余情 提交于 2021-01-29 16:49:22
问题 I'm implementing Sofort payment gateway in Android by the help of Stripe and I need some direction. I'm following Stripe Doc I've successfully done till Step 2 but I'm not understanding how to go with Point 3 to Charge the Source & webhooks . Will there be some backend coding to implement webhooks? If someone has already implemented Sofort please post it. I'll be very thankful. Please I need attention on this. 回答1: You are correct that you need to do Steps 3 and 4 on the back end. You would

Unable to create stripe token

梦想的初衷 提交于 2021-01-29 16:32:21
问题 I am trying to create token of Card but I don't know how to do it. let say I have Data like this in my state this.state = { paymentInfo : { cardNumber : '4242424242424242', expiry_month : 12, expiry_year : 22, cardCvc : 123 } } createToken = () => { const {stripe} = this.props; const element = stripe.elements(); //From here I don't know how to use data in my State to generate a token } Your help would be appreciated. 回答1: The recommended approach is to not maintain credit card information in

Stripe element form is not visible in a rails app

泪湿孤枕 提交于 2021-01-29 08:31:33
问题 I am using Stripe elements and the form is not displaying in my rails app. I have tried many suggestions and still no improvement. I am using ruby 2.3 & Rails 5.2.3 but not bootstrap. charges.js document.addEventListener("turbolinks:load", function() { const public_key = document.querySelector("meta[name='stripe-public- key']").content; const stripe = Stripe(public_key); const elements = stripe.elements(); const style = { base: { color: '#32325d', } }, invalid: { color: '#fa755a', iconColor:

Stripe Api error: Must provide source or customer

北城余情 提交于 2021-01-29 07:16:29
问题 Stack on stripe integration gateway laravel project. After creating controller function for post checkout and checkout.js file i'm facing the above error. It seems to be ok, and i don't know what do. I find some answers about this topic on stackoverflow but the code seems to be ok and i'm very stack on this. Request POST body: { "amount": "11100000", "currency": "usd", "description": "My First Test Charge" } Response body: { "error": { "code": "parameter_missing", "doc_url": "https://stripe

Stripe: charge/bill customer immediately when adding a subscriptionItem to an already existing subscription?

℡╲_俬逩灬. 提交于 2021-01-29 06:58:21
问题 I'm working for an online courses provider. This is the customer flow: student subscribe to teacherA | this creates a monthly Stripe subscription | student is billed student subscribe to teacherB | this adds a subscriptionItem to the subscription | student is not billed The problem is that, when I create the subscriptionItem, the customer is not immediately billed , and begin access to premium content for free. From what I red in the doc, creating has much subscription has students subscribes

Stripe Secret and Publishable key validation

走远了吗. 提交于 2021-01-29 04:59:00
问题 Is there any validation like length of key or any else for secret key and publishable key in Stripe account. I want in Php, jQuery, javascript. 回答1: Stripe secret API keys start with either sk_live_ (for live keys) or sk_test_ (for test keys). Similarly, Stripe publishable API keys start with pk_live_ or pk_test_ . 来源: https://stackoverflow.com/questions/33407871/stripe-secret-and-publishable-key-validation