This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stripe.com has address 54.186.23.98 | |
stripe.com mail is handled by 10 aspmx.l.google.com. | |
stripe.com mail is handled by 20 alt1.aspmx.l.google.com. | |
stripe.com mail is handled by 20 alt2.aspmx.l.google.com. | |
stripe.com mail is handled by 30 aspmx2.googlemail.com. | |
stripe.com mail is handled by 30 aspmx3.googlemail.com. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<form action="/charge" method="post" id="payment-form"> | |
<div class="form-row"> | |
<label for="card-element"> | |
Credit or debit card |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
klass = Stripe::PaymentIntent | |
intent_params = { | |
payment_method: payment_method_id, | |
amount: amount, | |
currency: currency, | |
confirmation_method: 'manual', | |
confirm: true, | |
expand: ['payment_method'] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading development environment (Rails 4.2.11) | |
[1] pry(main)> Stripe::VERSION | |
=> "4.0.0" | |
[2] pry(main)> Stripe::PaymentIntent.confirm | |
NoMethodError: undefined method `confirm' for Stripe::PaymentIntent:Class | |
from (pry):2:in `<main>' | |
[3] pry(main)> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] pry(main)> Stripe::VERSION | |
=> "3.30.0" | |
[2] pry(main)> klass = Stripe::PaymentIntent | |
=> Stripe::PaymentIntent | |
[3] pry(main)> klass.confirm | |
NoMethodError: undefined method `confirm' for Stripe::PaymentIntent:Class | |
from (pry):3:in `<main>' | |
[4] pry(main)> Stripe::PaymentIntent.confirm | |
NoMethodError: undefined method `confirm' for Stripe::PaymentIntent:Class | |
from (pry):4:in `<main>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://play.golang.org/p/AjNOxAM4GMt | |
package main | |
import "fmt" | |
type I interface { | |
J | |
i() string | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createStore = (reducer) => { | |
let state = reducer(); | |
const listeners = []; | |
const store = { | |
getState() { | |
return state; | |
}, | |
dispatch(action) { | |
state = reducer(state, action); | |
listeners.forEach((callback) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
const createStore = (reducer) => { | |
let state = reducer(); | |
const listeners = []; | |
const store = { | |
getState() { | |
return state; | |
}, | |
dispatch(action) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def eval_string(klass, attrib) | |
s = <<EOS | |
class #{klass} | |
def #{attrib} | |
@#{attrib} | |
end | |
def #{attrib}=(value) | |
@#{attrib} = value | |
end | |
end |