stripe-payments

Laravel Cashier: should I add a trial period in Stripe too?

我是研究僧i 提交于 2020-01-25 21:18:37
问题 Quoting Laravel Cashier documentation: If you would like to offer trial periods to your customers while still collecting payment method information up front, You should use the trialDays method when creating your subscriptions. Assuming I want to add a 30 days trial period to my subscriptions, I can create a subscription with this code: $user->newSubscription('main', 'monthly') ->trialDays(30) ->create($stripeToken); As a Stripe user, should I add a trial period in Stripe plan too? I'm not

Laravel Cashier: should I add a trial period in Stripe too?

Deadly 提交于 2020-01-25 21:18:22
问题 Quoting Laravel Cashier documentation: If you would like to offer trial periods to your customers while still collecting payment method information up front, You should use the trialDays method when creating your subscriptions. Assuming I want to add a 30 days trial period to my subscriptions, I can create a subscription with this code: $user->newSubscription('main', 'monthly') ->trialDays(30) ->create($stripeToken); As a Stripe user, should I add a trial period in Stripe plan too? I'm not

Stripe function cannot be found

佐手、 提交于 2020-01-25 07:24:48
问题 I am using Stripe in my angular7 application to handle payments via firebase cloud functions. I am currently trying to create a subscription payment. However, when I try and call the following function (as a sort of pre-req to the whole subscription setup); import * as Stripe from 'stripe'; const stripe = new Stripe('pk_test_....'); //Create payment method for customer const {paymentMethod, createPaymentMethodError} = await stripe.createPaymentMethod({ type: 'card', card: cardElementObj.card,

Charge from a card to specific merchant - Stripe?

≡放荡痞女 提交于 2020-01-24 20:54:26
问题 Let me illustrate my payment logic first off all. I have two user-level in my app Service provider will set up his bank a/c's to receive payment. So, I have created a customer Merchant1 in stripe then added & verified an a/c under that customer object. then saved the customer id for using it later. Customer will add his cards for making payment for a service. I have created a customer Customer1 and added card under then saved the customer id . Now I have to charge from Customer1 to Merchant1

Charge from a card to specific merchant - Stripe?

江枫思渺然 提交于 2020-01-24 20:54:07
问题 Let me illustrate my payment logic first off all. I have two user-level in my app Service provider will set up his bank a/c's to receive payment. So, I have created a customer Merchant1 in stripe then added & verified an a/c under that customer object. then saved the customer id for using it later. Customer will add his cards for making payment for a service. I have created a customer Customer1 and added card under then saved the customer id . Now I have to charge from Customer1 to Merchant1

Stripe Checkout without requiring name or email

蓝咒 提交于 2020-01-24 19:30:30
问题 I would like to implement Stripe checkout for subscriptions. I have followed the guidance here and everything works. However, the checkout form that Stripe provides requires the user to enter (i) the name on the card and also (ii) the user's email. Is there a way to remove these two items, so that the user does not need to enter them? Is it acceptable (in terms of security) to remove these items? The goal here is to make it easy for users to go through the payment flow, and also to limit the

Stripe “Invalid API Key Provided”

大城市里の小女人 提交于 2020-01-24 05:30:11
问题 I have followed Stripe's Rails tutorial (https://stripe.com/docs/checkout/guides/rails) exactly (copy and pasted code), but when I run rails PUBLISHABLE_KEY=pk_foo SECRET_KEY=sk_bar rails s and go to localhost:3000/charges/new and fill out the fields with the test card data (card number "4242 4242 4242 4242"), but I get an Invalid API Key provided: ***********_*** Any ideas why this is happening? 回答1: You need to plug in your publishable key and secret key; pk_foo and sk_bar are placeholders.

Stripe: card holder name verification

☆樱花仙子☆ 提交于 2020-01-23 08:27:27
问题 How can I implement this scenario: 1) When making payment with credit card user puts in the form his/her first name and last name 2) If first and last name entered to not match first and last name ("printed") on the card - we (myself or stripe) reject transaction. As I see in examples (https://stripe.com/docs/custom-form#step-1-collecting-credit-card-information), to create new token Stripe.js uses only: Card Number, Expiration (MM/YY), CVC. My back-end is on Java. As I see, neither 'Charge'

Stripe error : unable to perform color detection

非 Y 不嫁゛ 提交于 2020-01-23 04:35:10
问题 im currently attempting to integrate Stripe into a little website. I can see within Firebug, that this get request runs correctly https://checkout.stripe.com/api/bootstrap?locale=en&key=****************** However another request comes back with a NetworkError : 400 Bad Request https://checkout.stripe.com/api/color?image_url=https%3A%2F%2Fwww.*******.com%2Fassets%2Fimages%2Flayout-images%2Fstripe-logo.jpg&key= The JSON response when opening the URL in a browser is { "error": { "type": "invalid

Parse.com create stripe card token in cloud code (main.js)

回眸只為那壹抹淺笑 提交于 2020-01-22 02:41:05
问题 I am looking to create stripe token in parse cloud code.. I dont want to create token in client side HTML page. My complete web application is in HTML + Javascript so dont want to expose my Stripe.setPublishableKey('pk_test_xxxxxxx'); Because of this reason interest to define function in cloud code. Parse.Cloud.define("addCreditCard", function(request, response) { var token; var group; var Stripe = require('https://js.stripe.com/v2/'); Stripe.setPublishableKey('pk_test_xxxxxxxxx'); Stripe