1
有這樣的條紋狀:出現在條紋訂單ID謝謝頁
<form action="stripe/website-setup.php" method="POST">
<button><img src="images/stripe1.png"/></button>
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="pk_test_E33MEO7Xp6p5NmiYTaCBu1AJ"
data-amount="34895"
data-name=".org"
data-description="Widget"
data-image=""
data-locale="auto"
data-zip-code="true"
data-currency="usd">
</script>
</form>
當付款成功,它重定向到
header('Location: /payment-success');
我怎樣才能讓訂單/交易ID來出現在/payment-success
頁面上?
謝謝。
當你調用'header()'的時候你有訪問ID嗎?如果是這樣,只需將它作爲查詢字符串傳遞即可 –
閱讀本頁面。 https://stackoverflow.com/questions/37671218/php-stripe-get-the-transaction-id-after-successful-purchase – Oluwaseye