2014-12-20 30 views
1

根據https://stripe.com/docs/connect/reference上列出的可選查詢字符串參數,我很難讓字段預填充Stripe Connect的用戶授權註冊頁面。此頁面標識可選字段,例如stripe_user[product_description]在Stripe Connect的oauth/authorize註冊中預填充字段的正確語法

默認註冊過程適合我,所以根據url params正確設置所需的參數,如client_idresponse_type

但是當我添加一個可選的PARAM像stripe_user [production_description]到底,如在下文中,越來越忽略:

https://connect.stripe.com/oauth/authorize&scope=read_only&stripe_landing=register&response_type=code&client_id=ca_MyClientId&stripe_user[product_description]=My%20Product%20description.

但是,如果同時在測試用戶的新帳戶註冊頁面我只需將查詢字符串添加到url params的末尾,例如通過在瀏覽器地址欄中追加&stripe_user[product_description]=My%20Product%20description.,產品描述字段被Stripe隱藏,我認爲它正在被正確接收和識別。

我有一種感覺,我的語法稍微偏離某處,所以任何幫助表示讚賞。

回答

1

我想你可能只是在用它,例如,在href的:

<a href="https://connect.stripe.com/oauth/authorize&scope=read_only&stripe_landing=register&response_type=code&client_id=ca_MyClientId&stripe_user[product_description]=My Product description&stripe_user[url]=https://somesite.come">Connect to stripe</a>