我嘗試在Rails應用程序中使用自定義窗體來實現條紋。我有一個「計劃」頁面,允許用戶選擇他想要的計劃。它在get參數中重定向到帶有計劃名稱的收費自定義表單。 當我提交我得到以下錯誤的形式: This customer has no attached payment source 不過,如果我重新加載表格並重新提交它,它工作得很好...... 任何想法,是問題? 自定義形式: <%= form_ta
我使用的是條紋,並且之前的所有訂閱都正常工作。 最近我試圖將相同的代碼移動到不同的條帶帳戶,並且在嘗試收取訂閱時收到錯誤。 <?php
require_once('../stripe-php-master/init.php');
// (switch to the live key later)
\Stripe\Stripe::setApiKey("sk_test_hlQNSE1fy
我有條紋效果很好。在客戶捐贈後,會創建一個新的訂閱,並且效果非常好 - 除非Stripe識別該電子郵件並說「輸入驗證碼」。 如果客戶這樣做,出於某種原因,不會創建新的訂閱,並且客戶不收費。 這是我充monthly.php <?php
require_once('init.php');
// Set your secret key: remember to change this to you
當試圖開始認購新創建的客戶創建一個客戶時,我收到以下錯誤,從條紋: invalid_request_error Error: This customer has no attached payment source 客戶似乎要創建就好了。我正在使用Stripe Checkout收集卡片令牌。爲了測試,我使用帶有隨機信息的Stripe的4242 4242 4242 4242卡號。令牌似乎正在創建並傳