stripe

Stripe - undefined method Stripe\\Subscription::create()

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I am having a problem creating a stripe payment and keep getting this error. Here is the code. } else if($stripetoken != "") { $customer = \Stripe\Customer::create(array( "email" => $email, "source" => $stripetoken, )); if ($term == "1") { \Stripe\Subscription::create(array( <-- line 219 "customer" => $customer->id, "plan" => "monthly-sub-test", )); } I believe I have set up the code to what the documentation says https://stripe.com/docs/subscriptions/quickstart 回答1: You are using an older version of Stripe's PHP library . The \Stripe

forrtl: warning (402): fort: (1)

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i get the following warning at runtime: ... forrtl: warning (402): fort: (1): In call to I/O Write routine, an array temporary was created for argument #2 forrtl: warning (402): fort: (1): In call to I/O Write routine, an array temporary was created for argument #3 forrtl: warning (402): fort: (1): In call to GERADHEIT_LINIAL, an array temporary was created for argument #2 forrtl: warning (402): fort: (1): In call to GERADHEIT_LINIAL, an array temporary was created for argument #3 ... for every call of the subroutine / write statement. The

Stripe API Invalid Request: Must provide source or customer

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working on the Stripe API and building a custom checkout function - My error is specifically telling me I must provide a source or customer. This is my controller for creating charges: I thought I was successfully creating a source and/or customer with the following code (I also included the post logs on my stripe dashboard) Stripe::Charge.create( :amount => @amount, :currency => 'usd', :source => params[:stripeToken], ) Stripe::Customer.create( :email => params[:stripeEmail], :source => params[:stripeToken] ) "error": { "code":

Stripe Payment: Getting Error as Customer cus_***** does not have a linked card with ID tok_*****

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In testing mode when I create a new customer and tries for payment, i got this error. Customer cus_7Zz2BCnybIZLGw does not have a linked card with ID tok_17Kp8GAwLkQPB7OqrrM73VVI Im using card number : 4242424242424242 exp_month :12 exp_year 2016 The return response is, Array ( [charge_status] => [error_info] => Array ( [type] => invalid_request_error [message] => Customer cus_7Zz2BCnybIZLGw does not have a linked card with ID tok_17Kp8GAwLkQPB7OqrrM73VVI. [param] => card [code] => missing ) [message] => Customer cus_7Zz2BCnybIZLGw does not

Make stripe “data-amount” use a dynamic with a variable

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am in need of getting my script checkout to use my var $priceCheckout = $('#priceCheckout'); for the checkout price value. I have tried to replace the data-amount="2000" with data-amount= $priceCheckout; without any luck. So to be cleare! It needs to take my $priceCheckout and get it placede at data-amount so that the value of $priceCheckout will be the checkout price! <form action="" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="Personal key" data-amount= ??? data-name="Elo Calculator

Stripe: No such token.. a similar object exists in test mode, but a live mode key was used to make this request

匿名 (未验证) 提交于 2019-12-03 01:17:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When using Stripe in live mode I get this PHP error: No such token tok_fgfhn.. a similar object exists in test mode, but a live mode key was used to make this request Everything works well in Stripe test mode, and and I've switched to a live API key. I create a new customer like this: $token = $_POST['stripeToken']; $email = $_POST['email']; $customer = \Stripe\Customer::create(array( 'email' => $email, 'card' => $token )); //charge for user ads $charge = \Stripe\Charge::create(array( 'customer' => $customer->id, 'amount' => $amount,

Stripe Connect: Charging an existing customer against a “connected” (Standalone) account

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: If attempting to charge a customer record (which has an associated credit-card) via a connected account , I get an error claiming, "No such customer: cus_xxxx" -- even though making a charge to the same-exact customer will work fine when not using a "connected" account (when charging via the platform account). For example, consider the following Ruby code, assuming we have a "connected" (Standalone) account with ID acct_ABC123 : # Use the (secret) API key for the "platform" or base account. Stripe . api_key = 'sk_[...]' customer =

Stripe - PHP error - Stripe no longer supports API requests made with TLS 1.0

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to run stripe tests without an HTTPS page? I seem to be getting the following error on my localhost. Is there a way to correct it? This happens after submitting the payment information. Fatal error: Uncaught exception 'Stripe\Error\Authentication' with message 'Stripe no longer supports API requests made with TLS 1.0. Please initiate HTTPS connections with TLS 1.2 or later. You can learn more about this at https://stripe.com/blog/upgrading-tls .' in /Applications/MAMP/htdocs/composer/vendor/stripe/stripe-php/lib/ApiRequestor

Using Stripe Mobile Checkout in a WebView / Payments in Kik

匿名 (未验证) 提交于 2019-12-03 00:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to implement Stripe Checkout for accepting mobile payments within the Kik Browser but unfortunately, I'm getting the following error when trying to load Checkout: Sorry, there was a problem loading Checkout. If this persists, please try a different browser. Trying to create a custom form seems to work just fine - but I love the simple and intuitive design of Stripe's Mobile Checkout process - hence I'd prefer to use it, instead of building my own form. Kik is using WebViews to display websites on both Android and iOS. I hope

Stripe: add a one off payment to a subscription

匿名 (未验证) 提交于 2019-12-03 00:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible in Stripe to add a one off payment to a subscription, without creating a dedicated plan? Except, as well as bananas you could add almost any number of any other type of fruit, then the following month go straight back to being signed up for your bag of apples. I could charge the card the difference, but with the subscription going out on a set day each month and it might make for a messy bank statement. I'm using Laravel with Cashier at the moment. 回答1: You can use the invoice item object for this purpose. The invoice item can