stripe-payments

Integrating Stripe Payment in Flutter

半城伤御伤魂 提交于 2020-01-13 07:06:34
问题 I am trying to integrate Stripe Payment Gateway in Flutter app and i am following below link https://pub.dartlang.org/packages/stripe_payment But unfortunately i am getting error. I am using dependencies: stripe_payment: ^0.1.0. But i am getting below error FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':stripe_payment:compileDebugKotlin'. Compilation error. See log for more details Try: Run with --stacktrace option to get the stack trace. Run with --info

Can stripe.js be loaded in non-blocking fashion?

不羁的心 提交于 2020-01-12 13:48:10
问题 Can stripe.js be deferred and used with some ready - callback that i can't find in the docs? This is what i wanna do: <script src="https://js.stripe.com/v2/" async></script> And then in my app: function stripeReadyHandler () { //do stuff } 回答1: Turns out, there's a standards compliant way to do this: <script src="https://js.stripe.com/v2/" async onload="stripeReadyHandler()"></script> and then: function stripeReadyHandler () { //this will definitely do stuff ( if you're above IE9 of course }

Stripe Error: 'Token is Not Supported' when trying to sign up to subscription

假装没事ソ 提交于 2020-01-12 11:44:11
问题 Can't find any information on this particular error anywhere so please bear with me. My Angular/NodeJS app has a payment page (for monthly and annual subscriptions) handled through Stripe. I've created the subscription types in my Stripe dashboard (two subscriptions: StarterAnnual and StarterMonthly ), and I've set up the handler like so: var handler = StripeCheckout.configure({ key: 'pk_test_qs8Ot1USopAZAyLN3gNXma0T', image: '/img/stripe-logo.png', locale: 'auto', email: $scope.user.email,

Stripe - Additional Invoice Item included on recurring payment

点点圈 提交于 2020-01-12 07:17:04
问题 I am having a problem adding invoice item on subscription and currently banging my head on the wall. I've created an Invoice Item on stripe and I’d like the Invoice Item to be included on the recurring payment Here’s my code, it adds an invoice item on first invoice but not on the next invoice. $new_customer = Stripe_Customer::create(array( 'card' => $card, 'email' => $email,) ); Stripe_InvoiceItem::create(array( 'customer' => $new_customer['id'], 'amount' => $additiona_charges, 'currency' =>

Getting a fatal error when autoloading a PHP class

谁说我不能喝 提交于 2020-01-11 12:15:13
问题 I am attempting to use Cartalyst, a comprehensive PHP Library for Stripe payments. Here is a link to their documentation: https://cartalyst.com/manual/stripe/1.0. Here is the code I am trying to get to work: $stripe = Stripe::make('your-stripe-api-key'); $customers = $stripe->customers()->all(); foreach ($customers['data'] as $customer) { var_dump($customer['email']); } When I run the code above (in my real code I have my api inserted), I receive the following error: Fatal error: Class

Stripe - retrieve Customer ID using email from form

别来无恙 提交于 2020-01-11 06:35:12
问题 Is there any way to retrieve a Customer ID from the e-mail they enter in the payment form via the API? For my application customers will pay multiple times on an ongoing basis but for simplicity's sake there are no logins, they just enter their payment info and invoice number. As a best practice I'd like to keep all of their charges together in Stripe for obvious reasons but it doesn't seem this is possible? 回答1: I did this API request. This API request is not available in stripe docs.I got

Convert Stripe API response to JSON using stripe-php library

泪湿孤枕 提交于 2020-01-10 18:22:11
问题 I'm accessing customer data from the Stripe API, which I'd like to convert to JSON. Usually I'd convert an object to an array and use json_encode() but I don't seem able to in this case, even when trying to access the nested arrays. This is the response I'm trying to convert to json: Stripe_Customer Object ( [_apiKey:protected] => MY_KEY_IS_HERE [_values:protected] => Array ( [id] => cus_2dVcTSc6ZtHQcv [object] => customer [created] => 1380101320 [livemode] => [description] => Bristol : John

how do I send additional user information in a form after getting stripe token - angular

帅比萌擦擦* 提交于 2020-01-07 06:36:09
问题 So i'm using Stripe to accept payment on a form that also takes other info - name - address etc. I'm using the following library: https://github.com/gtramontina/stripe-angular and I have the form set up like this: <form id="signup-form" ng-submit="processForm()" stripe:form="saveCustomer"> <!-- our nested state views will be injected here --> <div id="form-views" ui-view></div> </form> and an example of nested form view (non stripe stuff) <div class="form-group"> <label for="name">Name</label

What is the best way to prevent user from using SaaS app after failed payment

自作多情 提交于 2020-01-06 20:38:56
问题 I am developing a SaaS application using Ruby on Rails. Each user has to subscribe to a specific plan to start using the application. This step has been done using Stripe The problem is I don't know how to prevent this user from using my application if the auto payment subscription is failed (he change his credit card, etc...). I am thinking of using a column in User model to mark this user as inactive and prevent him from signing in. But it does not work as I expected because I want this

How to get the charge Id after subscribing a customer to a plan with recurring payment?

自古美人都是妖i 提交于 2020-01-06 07:12:20
问题 I have successfully created a customer in stripe with a subscription of plan .After successful payment I am not able to get the charge Id because after subscribing a customer to a plan.It automatically generates an invoice.So what is the way that I can get that particular charge stripe Id from stripe and store it in my system database. 回答1: Getting the charge ID for a subscription (or an invoice) can be done via their webhooks integration. You need to expose an API in your app where Stripe