1
我想分條添加一些關於用戶的獨特數據。因爲它是寫在documentation,正常的URL鏈接看起來是這樣的:條紋重定向中的自定義數據返回
<a href="http://example.dev/stripe?scope=read_write&code={AUTHORIZATION_CODE}">Connect Stripe</a>
,並返回數據將是這樣的:
array:2 [
"scope" => "read_write"
"code" => "{TOKEN_CODE}"
]
在我的情況,因爲每個用戶擁有不同的域,但重定向回到相同的URL我需要知道誰是誰。因此,我可以將數據添加到重定向鏈接:
<a href="http://example.dev/stripe?scope=read_write&code={AUTHORIZATION_CODE}&data={UNIQUE_DATA}">Connect Stripe</a>
爲了從Stripe服務器獲取此數據?
array:3 [
"scope" => "read_write"
"code" => "{TOKEN_CODE}"
"data" => "{UNIQUE_DATA}"
]
試過[元數據](https://stripe.com/blog/adding-context-with-metadata) –
請在您的問題中添加更多內容。我不懂你的問題。如果您有任何代碼想要修改,那麼最好將您的問題與您的問題一起發佈。請儘可能詳細。 – Kray
@SulthanAllaudeen我可以在我的情況下使用元數據嗎?我不是[確定](https://stripe.com/docs/connect/standard-accounts)。 –