为条带解析ios app

时间:2015-05-14 19:56:36

标签: ios parse-platform stripe-payments secret-key

我的目标C应用程序在Stripe付款的测试模式下工作。但是现在我在testflight上测试它并且想要获取真正的信用卡号码。我已经交换了pk_live密钥(虽然我不确定在哪里/我是否需要更新我的sk_live密钥)。

我正在使用真实的信用卡测试该应用,以测试付款是否正在收费,但仍然收到Parse Error 141.我认为该问题与应用仍在响应,就好像它在测试模式。如何触发它在livemode中响应?

我正在使用Parse后端。 我已经手动将Stripe加入" Live"来自我的网络信息中心的模式。

由于

这是Stripe发生的事情:

" id":" ch_161iHxblahblahblah",   "对象":"充电",   "创建":1431455974,   " livemode":false,   "付费":假,   "状态":"失败",   "金额":300,   "货币":" usd",   "退款":false,   " source":{     " id":" card_161iHxblahblahblah",     "对象":"卡",     " last4":" 1234",     "品牌":" Visa",     "资助":"信用",     " exp_month":10,     " exp_year":2018,     " country":" US",     " name":null,     " address_line1":null,     " address_line2":null,     " address_city":null,     " address_state":null,     " address_zip":null,     " address_country":null,     " cvc_check":"传递",     " address_line1_check":null,     " address_zip_check":null,     " dynamic_last4":null,     "元数据":{     },     "客户":null   },   "捕获":false,   " balance_transaction":" txn_162I2Rblahblahblah",   " failure_message":"您的卡被拒绝了。您的请求处于测试模式,但使用的是非测试卡。有关有效测试卡的列表,请访问:https://stripe.com/docs/testing。",   " failure_code":" card_declined",   " amount_refunded":0,   "客户":null,   " invoice":null,   "说明":"费用为test@example.com",   "争议":null,   "元数据":{   },   " statement_descriptor":null,   " fraud_details":{   },   " receipt_email":null,   " receipt_number":null,   "运输":null,   " application_fee":null,   "退款":{     "对象":"列表",     " total_count":0,     " has_more":false,     " url":" / v1 / charges / ch_161iHxblahblahblah / refunds",     "数据":[

]

} }

1 个答案:

答案 0 :(得分:0)

我解决了这个问题......现在看起来非常愚蠢,但万一其他人在这个基本步骤中遇到困难:

密钥位于您通过Parse Cloud Code访问或创建的main.js文件中。 https://parse.com/apps/quickstart#cloud_code

转到Parse仪表板,然后转到Core,然后转到Cloud Code以确认您已部署它。