我有两张这样的桌子
表格1:
CREATE TABLE `table_1` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`status` int(11) NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `table_1` (`id`, `name`, `status`, `date_added`) VALUES
(1, 'CNN', 1, '2018-07-01 00:00:01'),
(2, 'BBC', 1, '2018-07-03 00:00:01');
Run Code Online (Sandbox Code Playgroud)
表 2:
CREATE TABLE `table_2` (
`id` int(11) NOT NULL,
`title` varchar(100) NOT NULL,
`status` int(11) NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `table_2` (`id`, `title`, `status`, `date_added`) VALUES
(1, 'Windows', …Run Code Online (Sandbox Code Playgroud) 这是我的条码交易的PHP代码,用于使用我的平台从客户那里获取申请费:
$token = $_POST['stripeToken'];
// Create the charge on Stripe's servers - this will charge the user's card
$charge = \Stripe\Charge::create(
array(
"amount" => 1000, // amount in cents
"currency" => "usd",
"source" => $token,
"description" => "Event charge",
"application_fee" => 123 // amount in cents
),
array("stripe_account" => $sInfo->stripe_user_id)
);
echo '<pre>';
print_r($charge);
Run Code Online (Sandbox Code Playgroud)
这是我的回答(部分)
Stripe\Charge Object
(
[_opts:protected] => Stripe\Util\RequestOptions Object
(
[headers] => Array
(
[Stripe-Account] => acct_16JkaUHzfYmjyH68
)
[apiKey] => sk_test_mHnhDuaVjnKmdkEApnYAKfGY
)
[_values:protected] => Array
(
[id] …Run Code Online (Sandbox Code Playgroud)