This file contains 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
<?php | |
namespace App; | |
use Illuminate\Notifications\Notifiable; | |
use Joshwhatk\Cent\UserModel; | |
class User extends UserModel | |
{ | |
use Notifiable; | |
/** | |
* The attributes that are mass assignable. | |
* |
This file contains 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 lang="{{ app()->getLocale() }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Laravel</title> | |
<!-- Fonts --> |
This file contains 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
public function eventget(Request $request){//購入先ユーザーのdestinationを指定しなければいけない | |
Stripe::setApiKey(env('STRIPE_SECRET')); | |
$result = $request["data"]["object"]["lines"]["data"][0]["metadata"]["destination"]; | |
\Stripe\Transfer::create(array( | |
"amount" => 200, | |
"currency" => "jpy", | |
"destination" => $result, | |
"transfer_group" => "{ORDER10}", |
This file contains 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
public function connect_subscription(){ | |
$user = User::all()->where('stripe_user_id', '!==', ""); | |
return view('connectsubscription')->with('user',$user); | |
} | |
public function subscribe_connect(Request $request) | |
{ | |
try { | |
Stripe::setApiKey(env('STRIPE_SECRET')); | |
$id = Auth::id();//user_id取得 |
This file contains 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 lang="{{ app()->getLocale() }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Laravel</title> | |
<!-- Fonts --> |
This file contains 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
public function showdirectcharge(){ | |
$user = User::all()->where('stripe_user_id', '!==', ""); | |
return view('directcharge')->with('user',$user); | |
} | |
public function directcharge(Request $request){//direct charge | |
try { | |
Stripe::setApiKey(env('STRIPE_SECRET')); | |
$customer = Customer::create(array( |
This file contains 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
public function connectcharge(){ | |
$user = User::all()->where('stripe_user_id', '!==', ""); | |
return view('charge')->with('user',$user); | |
} | |
public function onecharge(Request $request){//connect charge | |
try { | |
Stripe::setApiKey(env('STRIPE_SECRET')); | |
$iddata = $request->iddata; |
This file contains 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 lang="{{ app()->getLocale() }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Laravel</title> | |
<!-- Fonts --> |
This file contains 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 lang="{{ app()->getLocale() }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- CSRF Token --> | |
<meta name="csrf-token" content="{{ csrf_token() }}"> |
This file contains 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
@extends('layouts.app') | |
@section('content') | |
<!-- content | |
================================================== --> | |
<section class="container"> | |
<!--<section class="content">--> | |
<!-- Small boxes (Stat box) --> | |
<div class="row"> | |
<div class="col-md-12"> | |
<a href="{{$url}}"><button type="button" class="btn btn-primary">コネクト</button></a> |