stripe-payments

Update stripe connect account's legal entity

牧云@^-^@ 提交于 2019-12-24 22:53:51
问题 I'm retrieving a connected account thanks to Stripe PHP library, updating a few information and trying to save it. But, it throws this error message: This account can only be updated with an account token, because it was originally created with an account token. (Attempted to update param 'legal_entity' directly.) Here is my code: \Stripe\Stripe::setApiKey('sk_MYSTRIPESECRETKEY'); $account = \Stripe\Account::retrieve(ACCOUNT_ID); $account['legal_entity'] = array('dob' => array('day' => 01,

Tokenize bank info with Stripe iOS SDK

牧云@^-^@ 提交于 2019-12-24 19:04:57
问题 Using the UI components in the Stripe iOS SDK, I can easily generate a token/Stripe Source ID client side to securely pass credit card info to the server. I cannot seem to find a similar tokenization feature for bank account info. I can gather bank info client side with STPBankAccountParams, but is there a way to tokenize this info to then pass to the server? 回答1: I found a tokenization method in STPAPIAClient. Is this what you're looking for? #pragma mark - Bank Accounts @implementation

Get a list of the charges on a Stripe account connected via Stripe Connect

狂风中的少年 提交于 2019-12-24 17:51:19
问题 How do you get a list of customer charges on a connected Stripe account? For the main account, I use this: Stripe::Charge.all(customer: stripe_id).data But I can't find any documentation on getting charges off of another account without changing the Stripe.api_key for that call alone, which seems like a terrible practice. 回答1: The answer is to add the stripe_account key to the options hash of the Stripe API call: Stripe::Charge.all( { customer: stripe_id }, stripe_account: connected_account

Get a list of the charges on a Stripe account connected via Stripe Connect

那年仲夏 提交于 2019-12-24 17:50:04
问题 How do you get a list of customer charges on a connected Stripe account? For the main account, I use this: Stripe::Charge.all(customer: stripe_id).data But I can't find any documentation on getting charges off of another account without changing the Stripe.api_key for that call alone, which seems like a terrible practice. 回答1: The answer is to add the stripe_account key to the options hash of the Stripe API call: Stripe::Charge.all( { customer: stripe_id }, stripe_account: connected_account

Accessing local https service from stripe webhook

元气小坏坏 提交于 2019-12-24 16:22:24
问题 I am integrating a payment system using Stripe. In the process, I need to test the webhooks in my local dev. machine before I ship it to QA. I have tried the following, Ultrahook: however when starting the ultrahook it said, authenticated <myaccount>, but did not give any "Forwarding activated..." message. When I tried to access the url from stripe or web, it did not work. Details below, local url: https : //localhost/xxx/yyy/zzz ultrahook command: ultrahook -k localhost https : //localhost

Stripe - No API key provided (Laravel 5.1)

我怕爱的太早我们不能终老 提交于 2019-12-24 11:26:17
问题 I have problem with providing the Stripe API key. Everything is included, packages, all dependencies... The error message I get: No API key provided. (HINT: set your API key using "Stripe::setApiKey()". You can generate API keys from the Stripe web interface. See https://stripe.com/api for details, or email support@stripe.com if you have any questions. Controller: public function upgradeBronze() { $bid = Session::get('builderId'); Stripe::setApiKey(env('KEY_SECRET')); $token = $_POST[

How to get more customer sources using Stripe NodeJS SDK?

心不动则不痛 提交于 2019-12-24 09:00:22
问题 I am able to get customer sources only 1st 10 via get customer API: # stripe.customers.retrieve { "id": "cus_DE8HSMZ75l2Dgo", ... "sources": { "object": "list", "data": [ ], "has_more": false, "total_count": 0, "url": "/v1/customers/cus_DE8HSMZ75l2Dgo/sources" }, ... } But how do I get more? Is the only way via an AJAX call? I was thinking there should be a function somewhere in the SDK? 回答1: When you retrieve a Customer object via the API, Stripe will return the sources property which is a

Stripe + TypeScript: How to extend @types/stripe definitions for stripe-node?

家住魔仙堡 提交于 2019-12-24 07:57:22
问题 I'm working on project, where we're using Stripe library for Node . We also want to use TypeScript on this project. I've figured out that Stripe isn't providing official TypeScript definitions but I've found some community definitions @types/stripe on NPM. So I installed them and after a while I got an error: Property 'sources' does not exist on type 'Stripe'. Well there are missing some definitions, for example for this stripe.sources-related functionality. I want to add missing definitions

python google app engine stripe integration

▼魔方 西西 提交于 2019-12-24 07:06:58
问题 I am working on a project in which i want to integrate stripe for payments. I am following their documentation to integrate it in python Stripe Documentation. In documentation they downloaded the stripe library to use it. The code to download it was: pip install --upgrade stripe I followed the same steps. But i am getting this error. When i try to import it in my project. import stripe ImportError: No module named stripe 回答1: The proper way to install a 3rd party library into your GAE

Stripe Integration With Firebase on iOS

淺唱寂寞╮ 提交于 2019-12-24 05:58:50
问题 I'm building an iOS application using Firebase as my backend and want to implement Stripe without an external server. I've already checked out this post: Firebase payment gateways? — and it shows the following process regarding Stripe's payment process/gateway: User initiates transaction on your site Client code sends them to Stripe to enter their CC info Client code obtains a token representing the secure transaction A server process is notified by stripe when the transaction is validated