stripe-payments

cannot POST /payment (Node.js and Stripe)

蹲街弑〆低调 提交于 2019-12-13 04:59:31
问题 I've embedded stripes checkout in a file called payment.ejs <form action="" method="POST"> <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" data-key="pk_test_ODW7OJfVhlRJEgFY0ppWzwEE" data-amount="2000" data-name="Demo Site" data-description="2 widgets ($20.00)" data-image="/128x128.png"> </script> </form> I visit the page and enter in a credit card that gets accepted. However, I then get the error Cannot POST /payment in my app.js i have app.post('payment',

Stripe embed form: Change Zipcode placeholder text?

梦想的初衷 提交于 2019-12-13 04:41:25
问题 Does anyone know if it's possible to change the zipcode placeholder text to say "postcode" instead? Trying to take payments from uk customers and worried "zipcode" is putting them off. 回答1: Since the stripe checkout window is embedded it is currently no supported way that i know off to change the text displayed. The checkout window also adapts to which country the user is in. So as mentioned in comments it might say "Zip Code" in the US, but "Postcode" in the UK. If you want to lock the

Update php stripe integration to work with stripe.js V3 Strong Customer Authentication

烂漫一生 提交于 2019-12-13 04:35:35
问题 I need to up grade a site so that its stripe integration will work with Strong Customer Authentication (SCA). From what I have read stripe.js version 3 will handle this and will have to change my payment from markup. What I confused about is what version of the stripe PHP library I should use, If I'm making changes it makes sense to grab the latest version of the stripe php library as the version I have dates from sometime in 2017. If I look on the VERSION file in the stripe folder in my site

Using dotenv in production, or passing env variables to js/js.erb? and attempt with credentials

∥☆過路亽.° 提交于 2019-12-13 04:12:20
问题 I am attempting to pass my ENV variable of my stripe publishable key to the stripe.js file for Connect. Dotenv gem: gem 'dotenv-rails', groups: [:development, :test, :production] I added it to my dotenv gem .env file: STRIPE_PUBLISHABLE_KEY=pk_test_xxxxxxxxxx STRIPE_SECRET_KEY=sk_test_xxxxxxxxxx Then added to my stripe.js.erb file: var stripe = Stripe("<%= ENV['STRIPE_PUBLISHABLE_KEY']%>"); changing the stripe.js to stripe.js.erb worked locally, but the ENV doesn't seem to work in production.

Laravel Cashier 3D Secure/SCA issue stripe

放肆的年华 提交于 2019-12-13 03:58:57
问题 After integrating the stripe system using laravel cashier in our website, I did the testing with the test cards, few cards were successful and few were not. I have tried to adapt to the 3D secure/ SCA. So the thing is, 4000003800000446, 4000002500003155 and 4000000000003055 are success while 4000000000003220 and 4000002760003184 are failure among the cards, returns incomplete status. My system is for annual subscription for a magazine. I do get the pop up urging me to confirm authentication

Stripe Webhooks return 302 on laravel application, using spatie webhook

强颜欢笑 提交于 2019-12-13 03:48:55
问题 I am attempting to set up stripes webhooks in my laravel application. I have pulled in spatie's webhook package to help out, link below. https://github.com/spatie/laravel-stripe-webhooks My endpoint on stripe looks like https://myapp.ca/stripe/webhook Dev my routes Route::stripeWebhooks('stripe/webhook'); I have included the key in webhook config, and included in the verifyCsrfToken 'stripe/*', When I send a test I get <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv=

Stripe Checkout Link onClick does not process payment

空扰寡人 提交于 2019-12-13 03:48:02
问题 I'm using Stripe Custom Integration in order to link a navigation element to the checkout popup. My client side code looks like this: <!-- stripe stuff --> <script src="https://checkout.stripe.com/checkout.js"></script> <script> var handler = StripeCheckout.configure({ key: 'pk_test_(removed for Stackoverflow)', image: 'https://stripe.com/img/documentation/checkout/marketplace.png', locale: 'auto', token: function(token) { // You can access the token ID with `token.id`. // Get the token ID to

Stripe Execute Javascript On Form Complete

烂漫一生 提交于 2019-12-13 03:46:53
问题 Here I have the "custom" checkout button for stripe, I was wondering how I make this execute a piece of JavaScript after the checkout process is successful. I would like it to change the "book-appointment-button" style to "block" instead of "none" (I already know how to do this). I am just struggling with how to make it so it triggers said JavaScript after the checkout has been completed if anyone can please help it would be greatly appreciated. Thanks in advance. <!-- Start Of Stripe Payment

Issue with stripe payment set up

自闭症网瘾萝莉.ら 提交于 2019-12-13 02:59:02
问题 I am a definite PHP noob, so please bear with me. I am trying to set up a simple donation payment option for my fund raising website. I've got a paypal option, but was looking to add a stripe option as well. I'm using there simple Checkout process to collect card info and set up the stripe token. I've set up a pay.php file to handle the card info on the server. <!DOCTYPE html> <html> <body> <?php // secret key ***Stripe::setApiKey("sk_test_##########");*** // Get the credit card details

form_tag does not produce stripeToken upon submit

夙愿已清 提交于 2019-12-13 02:54:16
问题 I am following this tutorial for having customized checkout button I changed the tutorial for my need, and when I check my params , stripeToken is empty {"utf8"=>"✓", "authenticity_token"=>"sometokenvalue", "stripeToken"=>"", "amount"=>"40000", "item_id"=>"3"} I suspect I get this error Invalid source object: must be a dictionary or a non-empty string. See API docs at https://stripe.com/docs' owing to that. my code as follows : <p id="notice"><%= notice %></p> <div class="container"> <div