stripe-payments

Update Parse.com User from Stripe Webhook

馋奶兔 提交于 2019-12-18 03:44:35
问题 Firstly I see there are several Parse / Stripe questions on here however none are of any help to me. I have a mobile application that has both free and paid features. A variable is stored on the User class in Parse.com and it is checked for permissions when running a function. I would like to setup an account portal (separate to my app) so when users wish to signup they are sent to their browser and can signup to a plan over SSL etc etc. For the account portal i'm having a Wordpress site with

Can I check whether a Stripe customer already has a specific card before adding a new one?

懵懂的女人 提交于 2019-12-17 23:08:01
问题 I have saved stripe customer id's in my db for later payments. A customer will have multiple cards and I would like to check/validate new customer cards with their existing cards. Suppose the same card details can be stored multiple times as multiple cards. I want to check using the Stripe token whether a newly entered card already exists or not. It will use it if it's already there, if not it will create a new card. 回答1: Unfortunately while working on Stripe today i noticed that it do allows

Stripe Payment: Save token and customer and make payment later from token

淺唱寂寞╮ 提交于 2019-12-17 21:46:58
问题 Is it possible in stripe payment, First we will validate credit card using stripe, then we generate token and create customers. we will save token instead of credit card information in database and later we will make payments from customers on basis of token or customer instead of credit card information. In javscript file how do we handle stripeResponseHandler and function stripeResponseHandler(status, response) ? because we have already generate token using Stripe.createToken({ number:

PHP serve MP4 - Chrome “Provisional headers are shown/request is not finished yet” bug

主宰稳场 提交于 2019-12-17 20:06:59
问题 I want to check for users' subscription before allow them to see the video, for this reason I use PHP to interact with Stripe to check for user's subscription, and than used PHP script to serve MP4 to browser It works fine the first time a video is played in Google Chrome (Using HTML5 player)... But when I close the video and play it again, the video doesn't play anymore... I can NOT also reload the current page. It's like server stops working. When I inspect the 1st video request (the one

How does Chrome detect Credit Card fields?

倾然丶 夕夏残阳落幕 提交于 2019-12-17 15:40:03
问题 In some forms, Chrome autofill prompts with Credit card autofill. EDIT:Adding screenshot. This is not the same as browser autocomplete. You need not have entered the value in the same form before. How should I write my HTML form so the browser detects these as Credit card fields and triggers this behavior? An example of it working with a Stripe form would be ideal. 回答1: From this answer https://stackoverflow.com/a/9795126/292060, it looks like Chrome is either matching a regex pattern on the

How to make the actual Stripe charge in Angular (stripeToken already known)?

烂漫一生 提交于 2019-12-14 04:23:05
问题 I am using the Angular-Stripe-Checkout library to create a stripeToken like in this example. Some highlights are shown below. Like in many angular-stripe libraries and examples, it only shows how to create the stripeToken. However, it is unclear to me how to actually charge the user after having retrieved the stripeToken? On Stripe they have instructions on how to charge the user with node.js. But it is unclear to me how to setup this and make it compatible with the Angular. Highlights of the

Unable to create/generate a stripe_card_token

天大地大妈咪最大 提交于 2019-12-14 03:25:53
问题 I am creating a stripe_card_token with: Stripe.createToken(card, charge.handleStripeResponse) In my charges.js.coffee file jQuery -> Stripe.setPublishableKey($('meta[name="stripe-key"]').attr('content')) charge.setupForm() charge = setupForm: -> $('#new_charge').submit -> $('input[type=submit]').attr('disabled', true) if $('#card_number').length charge.processCard() false else true processCard: -> card = number: $('#card_number').val() cvc: $('#card_code').val() expMonth: $('#card_month').val

Can't cancel the subscription on stripe in cakephp

删除回忆录丶 提交于 2019-12-14 03:25:31
问题 I'm using this Cakephp StripeComponent plugin : https://github.com/chronon/CakePHP-StripeComponent-Plugin Everything is working fine but I can't cancel the subscription with this plugin. I had tried this https://stripe.com/docs/api#cancel_subscription, but no success. As its saying to retrieve the subscription and then cancel() But this plugin doesn't have any retrieve subscription function. When I tried this, $sub = \Stripe\Subscription::retrieve('SUBSCRIPTION_ID'); $sub->cancel(); I'm

Associate one-off Stripe payment token (tok_) with Customer object

◇◆丶佛笑我妖孽 提交于 2019-12-14 02:24:21
问题 Is it possible to associate a one-off Stripe charge/payment with a Stripe Customer profile but not save the card to the profile? I'd really like to organize my Customers and their purchases within the Stripe dashboard, but I can't see any way to do this. From what I can tell there are three ways to create a payment: Using the source parameter and no customer parameter. The source parameter in this instance starts with tok_ Using the customer parameter, which will use the default card on file.

Stripe - delaying transfers in a marketplace app

六眼飞鱼酱① 提交于 2019-12-14 01:05:58
问题 I'm building a marketplace app. I'm using Stripe to accept buyer payments and transfer a percentage to the seller. However, stripe only let's you transfer from your stripe balance. So if I accept a buyer payment that takes 2 business days to show up in my stripe balance, I can't transfer payment as a sale occurs. I get an insufficient balance error from Stripe. Is there a way to delay the transfer by say 3 days so the transfer is initiated after the buyer payment clears? I want to queue up