簡體   English   中英

激活帶模式解析iOS應用程序的實時模式

[英]Activating livemode for stripe parse ios app

我的目標C應用程序正在測試模式下進行Stripe付款。 但是現在我正在testflight上對其進行測試,並希望獲取真實的信用卡號。 我已經交換了pk_live密鑰(盡管我不確定在哪里/是否需要更新sk_live秘密密鑰)。

我正在用真實的信用卡測試該應用程序,以測試是否已付款,但仍會出現Parse Error141。我認為問題與該應用程序仍在響應,就像它處於測試模式一樣。 如何觸發它以實時模式響應?

我正在使用解析后端。 我已經從Web儀表板手動將Stripe置於“實時”模式。

謝謝

這是Stripe發生的事情:

“ id”:“ ch_161iHxblahblahblah”,“ object”:“ charge”,“ created”:1431455974,“ livemode”:false,“ paid”:false,“ status”:“ failed”,“ amount”:300,“ currency” “:” usd“,” refunded“:false,” source“:{” id“:” card_161iHxblahblahblah“,” object“:” card“,” last4“:” 1234“,” brand“:” Visa“,”資金”:“信用”,“ exp_month”:10,“ exp_year”:2018,“國家/地區”:“美國”,“名稱”:null,“ address_line1”:null,“ address_line2”:null,“ address_city”:null ,“ address_state”:空,“ address_zip”:空,“ address_country”:空,“ cvc_check”:“通過”,“ address_line1_check”:空,“ address_zip_check”:空,“ dynamic_last4”:空,“元數據”:{ },“ customer”:null},“ captured”:false,“ balance_transaction”:“ txn_162I2Rblahblahblah”,“ failure_message”:“您的卡被拒絕。您的請求處於測試模式,但使用了非測試卡。有關列表有效的測試卡,請訪問: https ://stripe.com/docs/testing。“,” failure_code“:” card_declined“,” amount_refunded“:0,” customer“:null,” invoice“:null,” description“ : “收費 test@example.com”,“爭議”:null,“元數據”:{},“ statement_descriptor”:null,“ fraud_details”:{},“ receipt_email”:null,“ receipt_number”:null,“ shipping”:null ,“ application_fee”:空,“退款”:{“ object”:“列表”,“ total_count”:0,“ has_more”:false,“ url”:“ / v1 / charges / ch_161iHxblahblahblah / refunds”,“數據” :[

]

}}

我解決了這個問題...現在看來非常愚蠢,但是以防其他人陷入這一基本步驟:

密鑰進入您通過Parse Cloud Code訪問或創建的main.js文件。 https://parse.com/apps/quickstart#cloud_code

轉到您的Parse儀表板,然后是Core,然后是Cloud Code,以確認您已部署它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM