stripe-payments

Unexpected error communicating with Stripe

我怕爱的太早我们不能终老 提交于 2020-01-01 09:05:35
问题 Billing with Stripe i have a form and i submit information and place the order following error has occured.... Unexpected error communicating with Stripe. If this problem persists, let us know at support@stripe.com. (Network error [errno 77]: error setting certificate verify locations: CAfile: C:\xampp\htdocs\PhpProject2\app\Lib\Stripe/../data/ca-certificates.crt CApath: none ) my controller action code if(!empty($this->request->data)){ $email = $this->request->data['email']; $credit_card =

Is it possible to set localhost as a Stripe webhook URL?

懵懂的女人 提交于 2020-01-01 04:12:48
问题 I am creating a payment gateway using Stripe. I want to set my localhost url localhost/stripe/webhook.php as my webhook url. Is it possible to set a localhost address as a webhook url? This will be used to create a mail service that is triggered on every successful charge in Stripe. 回答1: Check out http://www.ultrahook.com which allows you to receive webhooks on localhost 回答2: How to use ngrok and set up Stripe Webhooks url Source Link First Download ngrok and extract it on your computer

How to add card holder's name to Stripe checkout using Elements?

蹲街弑〆低调 提交于 2019-12-31 12:18:12
问题 I need to add an additional field to my custom form, I want to add the name of the credit card. I tried in the following way: var cardNameElement = elements.create('cardName', { style: style //, placeholder: 'Custom card number placeholder', }); cardNameElement.mount('#card-name-element'); <div id="card-name-element" class="field"></div> But this does not work, in its documentation only allows to perform these procedures validating only four elements or data: cardNumber, cardExpiry, cardCvc,

Firestore Rules to restrict write access to a specific field in a document

人盡茶涼 提交于 2019-12-31 09:44:11
问题 I am using Stripe for payments. For this, I have the following data model in Firestore: Users/{userId}/payments/{document} each {document} is an object that looks like: { amount: 55 token: {...} charge: {...} } Users must be able to to write the token field (this is what gets passed to the server), but I don't want users to be able to write the charge field. Currently my rules allow any user to read and write to this document: match /payments/{documents} { allow read, write: if request.auth

Firestore Rules to restrict write access to a specific field in a document

和自甴很熟 提交于 2019-12-31 09:42:47
问题 I am using Stripe for payments. For this, I have the following data model in Firestore: Users/{userId}/payments/{document} each {document} is an object that looks like: { amount: 55 token: {...} charge: {...} } Users must be able to to write the token field (this is what gets passed to the server), but I don't want users to be able to write the charge field. Currently my rules allow any user to read and write to this document: match /payments/{documents} { allow read, write: if request.auth

How to focus on element that loads after page load

…衆ロ難τιáo~ 提交于 2019-12-31 05:31:06
问题 I am using the following hack-ish approach to focus on the Stripe input element after it's loaded: <div id="card-element"> <!-- Load stripe stuff here --> </div> // <script src="https://js.stripe.com/v3/"></script> var card = elements.create('card', {style: style}); card.mount('#card-element'); setTimeout(function(){ card.focus(); },1000); Is there a better way to do, i.e., to detect when the card element is 'focus-able'. If I do it on page-load, it just doesn't see the element (it probably

Receive and log webhook post

别来无恙 提交于 2019-12-31 04:06:39
问题 I have an account set up with Stripe.com. I have configured a webhook for testing and am sending test posts to a cfm page that "receives" these requests. However, I am not sure that this page is doing what it should be. Currently, I just dump out all data. Below is what the page code looks like. When I run the page locally, or call it directly on our live test site, I get an email with all the data as expected. However, if I set the page up as a webhook url and then get Stripe to send a test

Create Token With Apple Pay Without Payment

折月煮酒 提交于 2019-12-30 18:22:31
问题 I have two questions: Is there a way to create an STPToken using Apple Pay without a payment? In my iOS app, the customer either enters in their payment info or decides to use Apple Pay when registering. When the customer decides to make a purchase (some time in the future after signing up), their card will be automatically charged. There is a method that I can call to check if the payment request can be made, but it seems that I have to actually run the payment and charge the card in order

Retrieve stripe data from stripe webhook event

本小妞迷上赌 提交于 2019-12-30 09:47:33
问题 When implementing stripe webhook in java, I am successful in getting the event object in JSON format. The problem is I am not able to get the details like the amount, subscription_id, attributes which are in nested JSON. Getting these values from the class object is also not available. Could you please tell me how to extract these values public void handle(HttpServletRequest request) { Stripe.apiKey = sk_test_XXXXXXXXXXXXXXXXXXXX; String rawJson = ""; try { rawJson = IOUtils.toString(request

Make a Stripe payment with Jquery AJAX? (Javascript ONLY)

帅比萌擦擦* 提交于 2019-12-30 07:29:06
问题 I am trying to make a custom payment form for Stripe, and I want to make the AJAX call to Stripe manually. (instead of a submit event) However, first off I am pretty sure I am posting it to the wrong place. But I can't figure out what URL I'm supposed to make this post request to. If I am using the right url. I am getting a 405 not allowed response. With no information on what is wrong with my request. Here's what I got: Stripe.setPublishableKey('pk_test_12345'); Stripe.card.createToken({