1 回答
TA贡献1877条经验 获得超6个赞
所以我设法使用以下代码使其工作:
<!DOCTYPE html>
<html>
<head>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"></script>
</head>
<body>
<?php
require_once('vendor/autoload.php');
$firstname = $_POST["inputFirstName"];
$lastname = $_POST["inputLastName"];
$email = $_POST["emailaddress"];
$discordid = $_POST["discordid"];
$stuff = array($firstname, $lastname, $email, $discordid);
echo implode(" ",$stuff);
$stripe = new \Stripe\StripeClient(
'HIDDENFORPRIVACYREASONS'
);
$stripe->customers->create([
'name' => $firstname . " " . $lastname,
'email' => $email,
'description' => $discordid,
]);
?>
</body>
</html>
- 1 回答
- 0 关注
- 116 浏览
添加回答
举报