I hereby claim:
- I am andyfleming on github.
- I am andyfleming (https://keybase.io/andyfleming) on keybase.
- I have a public key whose fingerprint is D8F4 24C2 9204 1997 FA2B CA0B ADBB 0505 BCD9 4FD6
To claim this, I am signing this object:
| <form action="/-api/stripe/subscribe-custom" method="POST" id="subscribe"> | |
| <!-- used only on front-end as user input; gets converted and stored as hidden input "amount" --> | |
| <input type="text" name="subscription_amount" value="5"> | |
| <!-- Hidden configuration: subscription interval. Can be "day", "week", "month", "year" --> | |
| <input type="hidden" name="interval" value="month"> | |
| <!-- Hidden, automatically set amount (by jQuery below): --> | |
| <input type="hidden" name="amount" value="500"> |
| <form action="/-api/stripe/subscribe" method="POST"> | |
| <!-- Plan to subscribe to --> | |
| <!-- "value" must match plan ID in Stripe --> | |
| <select name="plan_id"> | |
| <option value="plan1">Plan 1</option> | |
| <option value="plan2">Plan 2</option> | |
| <option value="plan3">Plan 3</option> | |
| </select> | |
| <form action="/-api/stripe/checkout" method="POST" id="donation-form"> | |
| <!-- Input field for user --> | |
| <input type="number" name="donation_amount" value="5"> | |
| <!-- Values for Zesty --> | |
| <input type="hidden" name="amount" value="500"> | |
| <input type="hidden" name="success_redirect" value="/thank-you-for-your-donation/"> | |
| <input type="hidden" name="failure_redirect" value="/an-error-occurred-with-your-donation/"> | |
| <input type="hidden" name="charge_description" value="Donation on example.com"> |
| <form action="/-api/stripe/checkout" method="POST"> | |
| <!-- Values for Zesty --> | |
| <input type="hidden" name="amount" value="1199"><!-- should match data-amount below (in cents) --> | |
| <input type="hidden" name="success_redirect" value="/thank-you/"> | |
| <input type="hidden" name="failure_redirect" value="/payment-error/"> | |
| <input type="hidden" name="charge_description" value="Purchase on example.com"> | |
| <!-- Stripe Checkout button settings --> | |
| <script src="https://checkout.stripe.com/checkout.js" class="stripe-button" |
| jQuery.ajax({ | |
| url: '/-api/user/profile', | |
| xhrFields: { | |
| withCredentials: true | |
| }, | |
| success: function(data, textStatus, jqXHR) { | |
| console.log(data.data.first_name) | |
| }, | |
| error: function(jqXHR, textStatus, errorThrown) { | |
| if (jqXHR.status === 401) { |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Database\DatabaseManager as DB; | |
| class DatabaseTestController extends Controller | |
| { | |
| /** |
| <?php | |
| return [ | |
| 'default' => 'accounts', | |
| 'connections' => [ | |
| 'accounts' => [ | |
| 'driver' => 'mysql', |
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Database\DatabaseManager; | |
| class StatsController extends Controller | |
| { | |
| /** |
| <?php | |
| namespace App\Http\Controllers; | |
| use \Illuminate\Database\Connection; | |
| class DatabaseTestController extends Controller | |
| { | |
| /** |