stripe-payments

How to implement 3d secure authentication in stripe?

拜拜、爱过 提交于 2020-04-17 21:14:26
问题 //Code Sample <?php session_start(); require_once("F:\wamp64\www\lib\stripe-php-7.27.2\init.php"); \Stripe\Stripe::setApiKey('sk_test_vXXXXXXXXXXXXXlmwqE'); $name = $_SESSION['namex']; $email = $_SESSION['emailx']; $phno = $_SESSION['mobilex']; $purpose = $_SESSION['purposex']; $amount = $_SESSION['amountx']; $txn = $_SESSION['txnn']; $token = $_POST['stripeToken']; $fee = $amount*0.02; $tax = $fee*0.18; $famt = round($amount+$fee+$tax); // payment information $charge = \Stripe\PaymentIntent:

How to start a subscription in stripe with delay?

最后都变了- 提交于 2020-04-10 08:14:12
问题 I have a number of users who are currently subscribers to a monthly subscription. For business reason, I want to be able to 1) Charge the customer when he decides to subscribe to our plan 2) Let the subscription become effective a number of days after the purchase Currently a charge is immediately attempted when a subscription is added to a customer in stripe. I want to stick to the stripe subscription because a) I still want to have stripe to manage subscription for me in future dates, and b

Stripe connected calls from the Front End, change the Stripe connected ID programatically

回眸只為那壹抹淺笑 提交于 2020-03-22 09:02:07
问题 I'm trying to solve this proble that I cant seem to solve with stripe's API's So when creating a charge with their new version API they say that in the front end we should call loadStripe('Pusblishable Key',{'Connected account ID'}) and set that to a const. now I dont undestand how are we supposed to get the ID that is stored somewhere say a database? As a reference please look at this and here (In Step 3 ...). What I'm currently doing is something like this import React from 'react'; import

Stripe connected calls from the Front End, change the Stripe connected ID programatically

淺唱寂寞╮ 提交于 2020-03-22 09:01:06
问题 I'm trying to solve this proble that I cant seem to solve with stripe's API's So when creating a charge with their new version API they say that in the front end we should call loadStripe('Pusblishable Key',{'Connected account ID'}) and set that to a const. now I dont undestand how are we supposed to get the ID that is stored somewhere say a database? As a reference please look at this and here (In Step 3 ...). What I'm currently doing is something like this import React from 'react'; import

Using Selenium Webdriver to interact with Stripe Card Element iFrame - Cucumber/Selenium Java

南楼画角 提交于 2020-03-21 19:23:04
问题 I have an form that I want to automate using Cucumber and Selenium Webdriver in Java - in this form, we have a card element which we use from Stripe. We call the div, and stripe does the rest. I'm unsure if this is an iFrame, but when I use the Hooks.driver.findElement(By.xpath("xpathOfTheCardNumberField")).sendKeys("123"); command, it does not interact with it and returns the "Unable to locate element" error in the console log. I have asked our front-ender to perhaps try and add some ID's or

Using Selenium Webdriver to interact with Stripe Card Element iFrame - Cucumber/Selenium Java

房东的猫 提交于 2020-03-21 19:22:25
问题 I have an form that I want to automate using Cucumber and Selenium Webdriver in Java - in this form, we have a card element which we use from Stripe. We call the div, and stripe does the rest. I'm unsure if this is an iFrame, but when I use the Hooks.driver.findElement(By.xpath("xpathOfTheCardNumberField")).sendKeys("123"); command, it does not interact with it and returns the "Unable to locate element" error in the console log. I have asked our front-ender to perhaps try and add some ID's or

Using Selenium Webdriver to interact with Stripe Card Element iFrame - Cucumber/Selenium Java

帅比萌擦擦* 提交于 2020-03-21 19:21:22
问题 I have an form that I want to automate using Cucumber and Selenium Webdriver in Java - in this form, we have a card element which we use from Stripe. We call the div, and stripe does the rest. I'm unsure if this is an iFrame, but when I use the Hooks.driver.findElement(By.xpath("xpathOfTheCardNumberField")).sendKeys("123"); command, it does not interact with it and returns the "Unable to locate element" error in the console log. I have asked our front-ender to perhaps try and add some ID's or

Uncaught ReferenceError: Stripe is not defined - STRIPE ERROR

不问归期 提交于 2020-03-16 03:00:16
问题 I'm trying to implement Stripe elements into my rails app, but I can't seem to include the stripe.js correctly. Here is my application.html <%= tag :meta, name: "stripe-key", content: Figaro.env.stripe_publishable_key %> <script type="text/javascript" src="https://js.stripe.com/v3/"</script> <script type="text/javascript" src="https://js.stripe.com/v2/"></script> JS var stripe = Stripe($("meta[name='stripe-key']").attr("content")) var elements = stripe.elements(); var card = elements.create(

Immediately charge for subscription changes

£可爱£侵袭症+ 提交于 2020-03-11 13:13:10
问题 We are using Stripe payment processing for our customer's subscriptions. When users change plans, we want them to be charged immediately for the prorated difference. Stripe does this automatically when plans have different billing intervals but when changing between plans with the same interval, Stripe defers payment till the next billing period. The way we handle this now is to create an invoice after updating the subscription, but if the billing fails for it fails, we need to do a rollback.

Immediately charge for subscription changes

廉价感情. 提交于 2020-03-11 13:10:46
问题 We are using Stripe payment processing for our customer's subscriptions. When users change plans, we want them to be charged immediately for the prorated difference. Stripe does this automatically when plans have different billing intervals but when changing between plans with the same interval, Stripe defers payment till the next billing period. The way we handle this now is to create an invoice after updating the subscription, but if the billing fails for it fails, we need to do a rollback.