第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

嘗試使用 php 設置 stripe api 并收到錯誤消息

嘗試使用 php 設置 stripe api 并收到錯誤消息

PHP
墨色風雨 2023-09-08 10:30:57
因此,我按照 stripes 網(wǎng)站上的安裝過程進行操作,目前收到一條錯誤消息,指出“未定義類型‘Stripe/StripeClient’”。代碼:<?php    require_once('vendor/autoload.php');    $stripe = new \Stripe\StripeClient(        ''      );      $stripe->customers->retrieve(        'cus_HjS2guMajCRCG5',        []      );?>
查看完整描述

1 回答

?
慕哥9229398

TA貢獻1877條經(jīng)驗 獲得超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> 


查看完整回答
反對 回復 2023-09-08
  • 1 回答
  • 0 關(guān)注
  • 154 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號