How can I clear test data in Stripe via the API?
No, it isn’t possible to clean all test data via the API — only via the dashboard. Sorry! In the Dashboard, the option now lives at the bottom of the Developers page
No, it isn’t possible to clean all test data via the API — only via the dashboard. Sorry! In the Dashboard, the option now lives at the bottom of the Developers page
If you’re using the Stripe PHP libraries and they have been namespaced (such as when they’re installed via Composer) you can catch all Stripe exceptions with: <?php try { // Use a Stripe PHP library method that may throw an exception…. \Stripe\Customer::create($args); } catch (\Stripe\Error\Base $e) { // Code to do something with the $e … Read more
From the Meteor.wrapAsync http://docs.meteor.com/#meteor_wrapasync you can see that you need to pass it a function and optionally a context, whereas on your two attempts you are passing the RESULT of calling the async version of Stripe.customers.create. Meteor.methods({ stripeCreateUser: function(options) { // get a sync version of our API async func var stripeCustomersCreateSync=Meteor.wrapAsync(Stripe.customers.create,Stripe.customers); // call the … Read more
You can wrap your code for const account inside an async function as your target option doesn’t support top level await. const account = async () => { await stripe.accounts.create({ type: “express”, }); }; It depends on your code whether you want to return something or you want to perform some other tasks after await. … Read more
Are you sure you’re using the same API keys on your server and client? Your server should be using your (live/test) secret key, and your iOS app should be using your (live/ test) publishable key as mentioned here on Stripe Testing.
Thankfully, this should be a pretty simple fix! hidePostalCode: true should be a top level property in your options, rather than nested under style here. https://stripe.com/docs/stripe.js#element-options var card = elements.create(‘card’, { hidePostalCode: true, style: { base: { iconColor: ‘#666EE8’, color: ‘#31325F’, lineHeight: ’40px’, fontWeight: 300, fontFamily: ‘”Helvetica Neue”, Helvetica, sans-serif’, fontSize: ’15px’, ‘::placeholder’: { color: … Read more
As you have already searched for getValuesOfAutofillInputs and PaymentAutofillConfig without any results, it is possible that this issue might be related to how Facebook’s webview handles autofill features for payment information. Try this steps: – Replicate the issue: Try to reproduce the issue on multiple iOS devices and different versions of the Facebook and Instagram … Read more
Most of the solutions presented here look like hacks after stripe’s release of subscription schedules, which is probably the most elegant solution. In fact, stripe documentation has an example illustrating exactly the same scenario here. Step 1: Get current_period_end value from the existing subscription that you wish to downgrade. Step 2: Create a new subscription … Read more
Alright, so I had to figure this out, because I was using Stripe.js v2, and the security vulnerability was explained to me by Stripe tech support, so I felt obligated to switch to Stripe.js v3 “Elements”. What they said was that any javascript on the same page as your credit card form elements could obtain … Read more
Stripe now allows you to filter customers by email. https://stripe.com/docs/api#list_customers Map<String, Object> options = new HashMap<>(); options.put(“email”, email); List<Customer> customers = Customer.list(options).getData(); if (customers.size() > 0) { Customer customer = customers.get(0); … This is important to help ensure you don’t create duplicate customers. Because you can’t put creating a customer in Stripe and the storage … Read more