FAQ Database Discussion Community


Implementing Stripe on Web: Uncaught ReferenceError: StripeCheckout is not defined

javascript,jquery,stripe-payments
I am trying to implement Strip payments in my web app. However, when using the sample code, I am getting the js error: Uncaught ReferenceError: StripeCheckout is not defined The code is like so: <script type="text/javascript" src="https://js.stripe.com/v2/"></script> <script> Stripe.setPublishableKey('pk_test_HnjFihOWwYTWnnsTLnZTmbgv'); var handler = StripeCheckout.configure({ key: 'pk_test_HnjFihOWwYTWnnsTLnZTmbgv', image: '/img/documentation/checkout/marketplace.png', token: function(token) {...

Retrieve subscription with Stripe Parse api

javascript,node.js,parse.com,stripe-payments
At the moment, I don't see any functionality to retrieve a Stripe subscription from Stripe's Parse.com module. Does anyone know how to do this? Thanks

How can I test subscription renewal flows in stripe?

integration-testing,stripe-payments
I want to test my application's handling of webhook events from stripe when a subscription payment has been made (or failed). Here is what I've tried so far: Set up a new subscription Update user's credit card to be the one that can be added to an account, but will...

Stripe error: “you can only make test charges right now”

stripe-payments
Stripe.js won't process my test payments. It's giving the error: you can only make test charges right now. What causes this?...

Getting Last4 Digits of Card using Customer Object - Stripe API with PHP

php,stripe-payments
I want to get the last 4 digits of a customers card using Stripe. I have already stored the Customer using: // Get the credit card details submitted by the form $token = $_POST['stripeToken']; // Create a Customer $StripeCustomer = \Stripe\Customer::create(array( "description" => "$username", "card" => $token )); Now I'd...

Free subscription with Stripe on Rails - Get token without card

ruby-on-rails,stripe-payments
I'm using Rails-Stripe-Membership-SaaS which makes use of Payola. Payola assumes you want to create an immediately charging subscription. This means free plans and plans with free trials require a credit card at sign up. I'd like to get around this. I've made a fork here: https://github.com/archonic/payola Where I'm confused is...

How can I test Stripe.js using poltergeist and Capybara?

ruby-on-rails,testing,capybara,stripe-payments,poltergeist
I've been going nuts trying to write an automated test for my user sign up page. Users will be charged a recurring subscription via Stripe. They input their basic details (email, password, etc) and their credit card details on the same form, then the following flow happens: (On the client-side)...

Testing Stripe works with js: true, but it makes other components work incorrectly

ruby-on-rails,testing,rspec,stripe-payments
Testing the stripe framework requires Javascript to be turned on, but when I send js: true in it method, the other components like visit, fill_in stop working in the way they were working before. Here is my code: def sign_up(subdomain) visit root_url(subdomain: false) visit new_account_path fill_in 'Name', with: 'Ryan' fill_in...

Stripe user token issue

javascript,ruby-on-rails,payment,stripe-payments
I'm following this guide (https://mikesabat.wordpress.com/2013/12/15/making-users-pay-building-a-site-with-strip-and-devise/) with no modifications other than changing the Stripe library to v2 instead of v1. Basically, my issue is that the stripe_card_token field saves a value starting with tok_BLAHBLAHBLAH, whereas in the Stripe dashboard, each customer has a token like cus_BLAHBLAHBLAH. My javascript that returns the...

Undefined method 'secret_key' in Stripe API integration

ruby-on-rails,stripe-payments
I am working on integrating Stripe with my Rails app. Per Stripe's documentation, I've added the following to 'config/initializers/stripe.rb', and set the environmental variables to the test keys: Rails.configuration.stripe = { :publishable_key => ENV['PUBLISHABLE_KEY'], :secret_key => ENV['SECRET_KEY'] } Stripe.api_key = Rails.configuration.stripe[:secret_key] (Editing to add that as suggested, I changed this...

How to access Rails configuration info in Backbone View?

javascript,ruby-on-rails,backbone.js,stripe-payments
I'm trying to implement Stripe into a Rails app with a Backbone front end. In a normal rails view, I can do this: <%= form_tag charges_path do %> <article> <label class="amount"> <span>Amount: $5.00</span> </label> </article> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="<%= Rails.configuration.stripe[:publishable_key] %>" data-description="Launch Survey" data-amount="<%= @amount %>"></script> <% end %> And...

Rails serialize not storing correctly

ruby-on-rails,json,serialization,stripe-payments,stripe-connect
I am setting up stripe connect with the example from https://github.com/rfunduk/rails-stripe-connect-example and am running into a problem using serialize to store stripe_account_status which should be stored as an array. This is how it should be stored (Generated from the above example link) {"details_submitted"=>false, "charges_enabled"=>true, "transfers_enabled"=>false, "fields_needed"=>["legal_entity.first_name", "legal_entity.last_name", "legal_entity.dob.day", "legal_entity.dob.month", "legal_entity.dob.year",...

Adding Parameters with Stripe Checkout

ruby-on-rails,object,stripe-payments,params
I am attempting to add parameters to Stripe Checkout. new.html.erb <%= form_for @user do |f| %> <%= f.label :first_name %> <%= f.text_field :first_name %> <%= f.label :last_name %> <%= f.text_field :last_name %> <% end %> <%= form_tag charges_path, class: 'stripeform' do %> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="<%= Rails.configuration.stripe[:publishable_key] %>" data-description="Beautiful" data-amount="<%=...

ServiceStack and Stripe

servicestack,stripe-payments,servicestack-text
I'm using the ServiceStack Stripe package, but it seems the serializer for the GetStripeCustomer method doesn't parse the Subscription Status correctly. In the JSON I can see that the Status is "past_due", but when ServiceStack converts it to StripeCollection the Status value is "Unknown". I'm using ServiceStack.Stripe v4.0.24 Has anyone...

Stripe Payment on user behalf

ruby-on-rails,user-controls,payment-gateway,stripe-payments,stripe-connect
I am using Stripe for payments. I want to transfer funds to other Stripe users. My account is not in USA. begin Stripe::Charge.create( :amount => amount_in_cents(amount), :currency => DEFAULT_CURRENCY, :customer => client.payment_token, :description => session_or_purchase.payment_description ) rescue Stripe::CardError, Stripe::InvalidRequestError, Stripe::APIConnectionError, Stripe::StripeError => e body = e.json_body err = body[:error] return...

Using Braintree and Stripe in Android app

android,stripe-payments,braintree
I have developped an Android app and the only thing left is to implement a payment solution to sell goods. I have been searching for a while and found Stripe and Braintree. It seems that they are pretty much the same in many aspects. However, I was wondering which one...

How to credit customer with stripe

stripe-payments
I'm using Stripe and i need to credit user with Stripe. I know how to credit myself with a customer, but can I credit a customer ? I'm using the Stripe PHP Library...

Stripe checkout with custom form symfony

php,symfony2,stripe-payments,payum
I have a checkout form that I am using to send shopping cart details to different payment gateways like paypal using Symfony and Payum. Now I am trying to send payment details to stripe in case user selects stripe checkout option. At the moment the integration with stripe is working...

how can I acess elements of a JSON retunr from a Stripe api call?

ruby,sinatra,stripe-payments
I am using ruby and sinatra. After a Stripe API call, I want to access an element, from a JSON return, and put it into my database. The ruby code is: require 'sinatra' require 'stripe' require 'pg' require 'sequel' get '/save_customer' do customer = Stripe::Customer.retrieve("cus_6EfJSbJ8gCTxxx") puts customer last4 = customer["sources"]["data"]["last4"]...

Why does AngularJS ignore $scope field change?

javascript,angularjs,stripe-payments
I want my modal dialog to be blurred while Stripe Checkout is open above it, but for some reason it stays blurred even after I've closed the secondary modal. It's best to try it in a sample plunkr Use card "4242 4242 4242 4242" to test, with any future expiry...

How to generate a valid sample token with stripe?

python,django,stripe-payments
Currently I'm integrating stripe payments into may django-based backed app - here is how it can be done with python. I've some integration tests done with APIClient and after payments were introduced I need to generate a sample token (normally received from client and generated with stripe.js) to make a...

Can't return 200 to Stripe Webhook

ruby-on-rails,stripe-payments,http-status-codes,webhooks
I am trying to test receive JSON webhooks from Stripe. I have read: Stripe Webhook on Rails https://stripe.com/docs/webhooks They require a 200 status response in order to acknowledge receipt. I want to solve this before moving on to dealing with the JSON. routes post 'webhook' => 'web_hook#webhook' controller Stripe.api_key =...

Ruby/Rails: suppress superclass functions - integration of Stripe and Devise

ruby-on-rails,ruby,devise,stripe-payments
I have a create method in my RegistrationsController, which inherits from Devise::Registrations controller. It is supposed to call Stripe and if the creation of a customer is successful, it saves the user and sends a confirmation email, which is handled by '#create' in Devise. If the call to Stripe fails,...

Parse returns error for Stripe module

ios,parse.com,stripe-payments
I want to use the Stripe Cloud Module for charging credit cards inside my app, however the cloud function always returns with error code 141. Error: Uh oh, something went wrong (Code: 141, Version: 1.5.0) Error Domain=Parse Code=141 "The operation couldn’t be completed. (Parse error 141.)" UserInfo=0x170a640c0 {error=Uh oh, something...

How to auto import all Stripe classes into CakePHP

php,cakephp,cakephp-2.0,stripe-payments
How do I import all necessary classes from Stripe PHP SDK (2.1.0) into CakePHP (2.6.1)? I have added a submodule for the Stripe and cloned it into app/Vendor/Stripe My code looks like this: <?php App::uses('Stripe', 'Vendor/Stripe/lib'); // Secret API Key for Stripe \Stripe\Stripe::setApiKey('sk_test_xxxxxxxxxxxxxxxxxxx'); class BillingController extends AppController { // My...

Using nodejs calling Stripe API to get total_count

node.js,stripe-payments
I am using Stripe with nodejs to get a list of say all the charges, with the total_count included in the results. I call it like this: stripe.charges.list({include: ['total_count'] }, cb) But I get the following error back from the API: Unhandled rejection Error: Invalid array (Leaving off the include...

Stripe API Documentation

api,documentation,stripe-payments,documentation-generation
Does anyone know what Stripe uses to generate their api documentation? https://stripe.com/docs/api#intro I'm looking for something that supports multiple programming languages....

Yii2: How to simply include and use in controllers the Stripe php lib?

php,yii2,stripe-payments
So far I've used composer which puts the lib underneath the vendor folder. It goes like this : vendor\stripe\stripe-php\lib From there I'm bit lost on how I should declare the namespace (i guess in config/web.php underneath components). The namespace declared in the Stripe.php class file is Stripe. In the controllers...

How do I use the card fingerprint feature of Stripe's API via their Python library?

python,flask,stripe-payments
According to https://support.stripe.com/questions/blocking-certain-card-numbers , a particular card can be blocked from being charged based on its fingerprint. I haven't been able to find any example code that would allow me to do that. I am working with Flask and would like to check a card's fingerprint against a table that...

How can I allow users to get paid directly with stripe?

ruby-on-rails,e-commerce,stripe-payments,marketplace
I've looked at stripe connect and it forces each user to impute their Social Security number and etc. just so they accept payments for a item they want to sell. Is there a less painless method where users can sell something on my site, receive monies, and buy from other...

How to know if user disconnected from my Stripe Connect app?

oauth,oauth-2.0,stripe-payments,stripe-connect
I can provide a disconnect option on my app, as described here: https://stripe.com/docs/connect/getting-started#revoked-access But if a user revokes access to my app through his account settings, how can I know about that?...

Edit a credit card using Stripe checkout.js

stripe-payments
Checkout from Stripe has a great way to add a credit card for a transaction, by simply invoking StripeCheckout.open(). Is it possible to use .open() to edit a card? (passing in the card token) Also, where can I download a non-minified version of checkout.js to see the .open() method signature?...

Turning the Stripe Checkout into a Synch function

meteor,stripe-payments
I am trying to use wrapAsync for Stripe.charges call using Stripe Checkout, but I cant seem to get it working Client code Template.bookingPost2.events({ "click #accept": function(event, template){ event.preventDefault(); StripeCheckout.open({ key: 'public_key', amount: 5000, // this is equivalent to $50 name: 'Meteor Tutorial', description: 'On how to use Stripe ($50.00)', panelLabel:...

Stripe on iOS and saving card details

ios,stripe-payments
I need to implement "Save card" and "Delete card" features in my iOS app. From Stripe documentations I found that we can create a customerId on our backend and link it to our internal userId. But we need part of card details to display it to user. E.g. Visa card...

Per-user / per-quantity recurring billing. What are alternatives to Stripe?

paypal,payment-gateway,payment,stripe-payments,recurring-billing
I am looking for alternatives to stripe's per-user pricing subscription : I need : to charge my user a recurring payment which depends on the number of user accounts he has to be able to change the number of users via an API, with customer validation is ok, but ideally...

How to provide seller with order details Stripe

ruby-on-rails,stripe-payments
I am creating a very basic online store that allows users to buy and customize certain products. I have gotten the payment system working using Stripe, and all that is left to do is provide the seller with a place to view the completed orders (which should contain Shipping Address,...

Save stripe customer details for a project

stripe-payments,stripe-connect
I am working on a project where I have integrated stripe connect which is working fine, but now the problem is how I can check that returned details on redirect url are for a specific project. Projects functions as follows. 1.Registered users add Non-Profit. 2.Connect to their stripe account to...

one app with multiple merchant accounts attached!! apple pay

ios8,xcode6,stripe-payments,authorize.net,applepay
is it possible with apple pay if my app users want to pay their doctor (doctor can vary for patients) with apple pay? For Example A_patient pay to A_Doctor AND B_patient pay to some other doctor on same app basis on application data. And each doctor has own merchant account....

Implementing Stripe with iPhone

ios,objective-c,in-app-purchase,stripe-payments
I'm trying to integrate Stripe with ios. I'm following this guide. I'm getting stuck here at 'Using an STPCard'. When I start typing this [Stripe createTokenWithCard:card... Xcodes 'Intelligent code completion' puts a red line through it (kinda like when something is depricated). Here is the code. [Stripe createTokenWithCard:card completion:^(STPToken *token,...

How does a WebHook work?

php,http,paypal,stripe-payments,webhooks
I'm currently implementing payments platform to my website wich is very similar to Stripe, but I still can't understand the process or how should I use WebHooks since I need to specify one on my account in the payments platform. So let's say a person pays in my website for...

Stripe Cashier Webhooks

php,stripe-payments,laravel-5,webhooks,ngrok
I'm looking for clarification of the use of the Webhooks Controller in Stripe Cashier as described in the Laravel Docs as I can't confirm that my application is receiving the webhook events: http://laravel.com/docs/5.0/billing#handling-failed-payments The docs advise to point a route to the webhook controller like this: Route::post('stripe/webhook', 'Laravel\Cashier\[email protected]'); The URI...

django stripe set up installation error

python,django,stripe-payments
My problem is down to my lack of experience with django (and coding) and stripe. I am trying to test a very basic stripe payment on a test form on my local development server, but I am getting an error message when I try to start my local development server....

How to redirect to a success page After Stripe success with Meteor js

javascript,node.js,meteor,stripe-payments
I am doing some testing with stripe payments with meteor, I am getting the payment to go through successfully to stripe from my server, i am doing this within a meteor method, but i need to show a payment processing visual to the user and then when payment is successful...

Stripe token with id not found

node.js,stripe-payments,stripe-connect
I'm trying to set up stripe connect but am getting an error when creating a charge. Any idea what I'm doing wrong? client Stripe.setPublishableKey([CUSTOMERS_PUBLISHABLE_KEY]); Stripe.card.createToken({ number: card.number, cvc: card.cvc, exp_month: card.exp.month, exp_year: card.exp.year }, stripeResponseHandler); the response to this call looks like this: { "id": "tok_169ZyxF6SmAjeAPKC9YF7YAi", "livemode": false, "created": 1433330667,...

Transactions via Stripe Connect

php,stripe-payments,stripe-connect
I am trying to setup the following with Stripe: A master account Multiple sub-accounts (i.e. connected to the Master account via Stripe Connect app) Enable payments to be made to a sub-account, with a percentage fee taken by the Master account per transaction. I have created a Master account, and...

Integrate Stripe SDK in iOS (Swift)

ios,xcode,swift,stripe-payments
I added Stripe SDK to my iOS app (added PassKit.framework alongside the StripePublishableKey in AppDelegate) via manual installation, but I came across one of two issues when the import statement (tried both #import <Stripe/Stripe.h> and #import "Stripe.h") was added to the bridging header file: 1) With #import <Stripe/Stripe.h>, the bridging...

Store credit card using Stripe + Parse with cloud code

ios,swift,parse.com,stripe-payments,cloud-code
I am attempting to store a users credit card into stripe. Once the token is made, I attempt to save the token with the user to Stripe as a customer. But I didnt find any answer to my problem, I just need to store a card to a user that...

How do I test stripe and my controller effectively?

ruby-on-rails,rspec,stripe-payments
I have the following models: subscription, user, and events A user has_one subscription A subscription belongs_to a user A user has_many events An event belongs_to a user So far I have been able to successfully create acceptance tests using Capybara and RSpec. This allows me to 'upgrade' a users account...

Stripe integration error Xcode 6.2

ios,stripe-payments,xcode-6.2
To be specific i get this error when i build my project after adding the stripe framework.The project is for the iOS platform. I have all the standard architectures added to my build settings namely armv7,armv7s. This is the error logged, Undefined symbols for architecture i386: "_OBJC_CLASS_$_STPAPIClient", referenced from: objc-class-ref...

Firebase Qeue and Stripe Subscriptions

firebase,stripe-payments
I have read the other tutorials on how to integrate Stripe with Firebase, all of them require an external server. Recently I found Firebase Qeue and wondered if there would be any way to integrate Firebase Qeue with a Stripe Subscription so that I wouldn't need to use an external...

Using the returned object / list from Stripe

php,stripe-payments
I have a Stripe_List that is returned from a \Stripe_InvoiceItem::all() request. $invoice_items = \Stripe_InvoiceItem::all(); return $invoice_items; This gives me the following: Stripe_List JSON: { "object": "list", "has_more": false, "url": "\/v1\/invoiceitems", "data": [ { "id": "ii_123456789abcdefg", "object": "invoiceitem", "date": 1424714643, "amount": 0, "livemode": false, "proration": false, "currency": "gbp", "customer": "cus_xyz12345", "description":...

Update Parse.com User from Stripe Webhook

javascript,wordpress,parse.com,stripe-payments,webhooks
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...

Converting a json looking simple value string to a ColdFusion structure

coldfusion,stripe-payments
I do the following in ColdFusion script: svc = new http(); svc.setMethod('post'); svc.setCharset('utf-8'); svc.setUrl('https://api.stripe.com/v1/charges'); svc.addParam(type='header', name='Authorization', value='Bearer #Stripe.mySecretKey#'); svc.addParam(type='formfield', name='amount', value=form.amount); svc.addParam(type='formfield', name='currency', value='usd'); svc.addParam(type='formfield', name='card', value='#form.card#'); svc.addParam(type='formfield', name='description', value='#form.email#'); prefix =...

Check if a user has a subscription with dj-stripe in Django templates

python,django,stripe-payments
I'd like to have a button in many different Django templates that encourages users to subscribe to one of two dj-stripe paid plans, but I don't want to show the button to users who have already subscribed to either plan. I know I can use {% if user.is_authenticated %} in...

When am I supposed to consider a subscription “active” in Stripe?

stripe-payments
When am I supposed to consider a subscription "active"? When I successfully do my initial stripe.customers.create call? Or do I have to wait for an invoice.payment_succeeded event some time later? If it's right after stripe.customers.create, does that mean I could then immediately call stripe.invoices.list, get the initial invoice, and have...

How to add email field to Stripe checkout for one-time payment

php,stripe-payments
I am selling a product on my website. I have Stripe setup and have been accepting orders. I added a email field, however it is not saving to Stripe. I'm not sure what I am doing wrong, if someone could offer some help. The email field is towards the bottom...

How to deauthorize/disconnect Stripe Connect accounts in Rails

ruby-on-rails,curl,stripe-payments,httparty,stripe-connect
I was looking for quite a long time for a good example on how to de-authorize / disconnect a Stripe Connect account in my Rails app. Perhaps for those that are well versed in making external POST requests, this is trivial, but I'm new and this seemed so hard for...

Operational error while using stripe with profile app

django,python-2.7,django-templates,stripe-payments
I am trying to embed Stripe in custom profile app and using django-registration package for registering users. I need to get users registered and then generate a Stripe ID for new users but getting the error below: OperationalError at /accounts/login/ no such table: profiles_userstripe My complete code for Profile app...

Retrieve customer email from ID contained in webhook in Parse.com

javascript,parse.com,stripe-payments,webhooks
I have an App using Parse.com as a backend and an external site that acts as my payment gateway. Upon receiving the customer/subscription webhook data from Stripe I wish to lookup the users email so I can then run a Cloud Code function and change their user status to 'paid'...

Un-canceling a Stripe subscription

stripe-payments
Suppose a user wants to cancel their subscription, so I issue a command like this: stripe_subscription.delete(at_period_end: true) Later, though—before the period ends—the user changes their mind. Is there a call I can issue to undo the scheduled cancellation? If not, what's the best way to implement this? My best guess...

Laravel not applying coupon using Billing/Cashier

php,laravel,laravel-5,stripe-payments,laravel-cashier
I am trying to apply a coupon to a user’s subscription upon creation. To do this I am using the following code: $user = Auth::user(); if(!empty($request->coupon)){ $user->subscription('monthly')->withCoupon($request->coupon)->create($request->stripeToken); } else { $user->subscription('monthly')->create($request->stripeToken); } I have checked the value of $request->coupon and it contains my coupon. The coupon exists and is in...

How to send Billing information with Stripe token for validation checks

stripe-payments
I have got a stripe token from stripe js, Now I want to charge the customer. How do I send the billing address along with the stripe token for charging. My objective is to validate zip code and address_line1 which I have enabled at the stripe dashboard. Note:- I can...

Marketplace future payment : Escrow vs Scheduled Payment

payment,stripe-payments,marketplace,braintree,escrow
I am currently building a marketplace similar to airbnb/uber for the payment, where sellers would receive payment from buyers once the "service" is completed. The payment solutions I am considering are Stripe and Braintree. Braintree offers Escrow while Stripe doesn't. To make the transfer there are thus 2 solutions: with...

Can I use Apple Pay to create a Stripe Token without charging the user?

ios,stripe-payments,applepay
I'm making an app where I need to collect user credit card info at some point so I can charge them later. Right now I use stripe and their PTKView to collect credit card info and store it. Then later on when the user wants to pay I'm ready to...

Can certain URLs be exempt from CSRF in sails.js?

javascript,sails.js,csrf,stripe-payments
I'm setting up Stripe to work with my sails.js server, and in order to use Stripe's webhooks, I need to disable CSRF for the URLs I provide to Stripe. Is it possible to make certain URLs exempt from CSRF POST requirements in sails.js? The only configuration I can find for...

Get subscription id from invoice.payment_failed webhook in Stripe

ruby-on-rails,ruby,stripe-payments
In my application I have customers which one can have multiple subscriptions. When some of the subscription payment will fail I send via stripe webhooks this params to my server: { "created"=>1326853478, "livemode"=>false, "id"=>"evt_00000000000000", "type"=>"invoice.payment_failed", "object"=>"event", "request"=>nil, "pending_webhooks"=>1, "api_version"=>"2015-02-18", "data"=>{ "object"=>{ "date"=>1426238137, "id"=>"in_00000000000000", "period_start"=>1426232774, "period_end"=>1426238137,...

Warning: Illegal string offset 'id'

php,json,stripe-payments
I have the following code: $charge = \Stripe\Charge::create(array( 'customer' => $customer->id, 'amount' => $amount, 'currency' => 'cad', 'capture' => 'false', 'description'=> $courseTitle )); $charge_json = $charge->__toJSON(); echo $charge_json['id']; echo "<pre>"; var_dump($charge_json); echo "</pre>"; } where the intent is to grab whats on the green below: but I receive the following...

Creating Payment Request works in simulator, but not on a real device

ios,xamarin,stripe-payments,applepay
I integrated the Stripe component in my app and using Apple Pay for accepting payments. I tested it on iPhone 6 and iPhone 6 plus, and the devices have valid cards. But If I try to create a payment request StripeClient.CanSubmitPaymentRequest is always returning false in real device. It is...

djStripe subscriber_has_active_subscription is always false

django,stripe-payments
On the current djStripe configuration say: Customer User Model has_active_subscription property Very useful for working inside of templates or other places where you need to check the subscription status repeatedly. The cached_property decorator caches the result of has_active_subscription for a object instance, optimizing it for reuse. And ask you to...

Stripe billing class not found - Laravel

php,laravel-4,stripe-payments
I have added the Stripe library to my composer.json file, ran all commands just to check... update, dump-autoload etc. In my classmap file the library is shown: 'Stripe\\Account' => $vendorDir . '/stripe/stripe-php/lib/Account.php', and so on... In my app folder i have my classes folder etc: app motivate Billing BillingInterface.php StripeBilling.php...

Stripe subscription add-on's & features

node.js,payment,stripe-payments
Right now I have 3 types of subscription at my site: Starter (10$) Plus (15$) Premium (19$) Also I have few add-on's which user can add to his subscription, e.g.: Subscription : plus +feature 1(+10 $) +feature 2(+10 $) Total = 15$ + 10$ + 10$ = 35$. User should...

Stripe Error 400 - Cannot use stripe token more than once

javascript,php,stripe-payments
I keep receiving error code 400 on my stripe dashboard. It seems like im using the same stripe token more than once and this produces an error. Below is my code. Js: <script src="https://checkout.stripe.com/checkout.js"></script> <script> var handler = StripeCheckout.configure({ key: 'pk_test_******************', image: '/img/documentation/checkout/marketplace.png', token: function(token) { /*$.post("php/charge.php",{stripeToken:token.id},function(data,status){ console.log("Data: "+ data+"\nStatus:...

Does stripe allow to charge multiple customers in on api call?

stripe-payments
I want to create a job that runs once a month and charges customers for different fees. Is it possible to charge multiple customers in one api call ? If not, what is the rate limit of the api ?...

How to create a customer in omnipay-stripe

php,codeigniter,stripe-payments,omnipay
I'm using Omnipay-stripe and I'm trying to Create a customer with the following code: $gateway = Omnipay::create('Stripe'); $gateway->setApiKey('sk_test_....'); $token = $this->input->post('stripeToken'); // Code Igniter for $_POST['stripeToken'] $customer = $gateway->createCard(array( "source" => $token, "description" => "Example Customer") ); echo 'Customer: '; echo '<pre>'; print_r($customer); echo '</pre>'; and I haven't had any...

Stripe Payments API : Charge card from the iOS App instead of using a server

objective-c,swift,stripe-payments
This is about Stripe Payments API "https://stripe.com/docs/mobile/ios" I was wondering if anyone was able to charge a credit card using stripe API from the iOS App, instead of sending the stripeToken to a server. A fellow developer was able to do it on the android version of our app by...

Retrieve a list of supported countries from Stripe API?

stripe-payments
I've read over Stripe's API and couldn't find a way to find if a country is supported by Stripe. e.g: I have an user who is going to receive a payment and he is from a country, I need to check if he can use Stripe to receive this payment...

Why is my iterator being advanced again?

node.js,promise,generator,stripe-payments,ecmascript-6
I have the following program - I use genny.js to handle the asynchronous flow control - I have tried the same with suspend.js - similar error. I am using the Stripe nodejs API. My iterator function seems to be called twice - which is causing an error - and I...

Attach shipping information to Stripe Charge using Go

go,stripe-payments
I'm trying to create a new charge via the Go API. I have a shipping address and a payment token. But the Go API doesn't seem to support sending the shipping address. The documentation indicates that it should support it but there isn't a direct mapping between the arguments described...