使用StripeConnect进行比特币支付

时间:2015-12-28 10:12:53

标签: stripe-payments bitcoin stripe-connect

我正在使用StripeConnect代表我们的连接商户向客户收费。当我使用信用卡/借记卡充电时,它的工作正常。我使用merchant_stripe_access_token来创建比特币接收器并使用相同的merchant_stripe_access_token在确认BitCoin被填充后收费。请让我知道我错过了什么。

stripe_bitcoin_receiver = Stripe::BitcoinReceiver.create(
{
    amount:             dollar_to_cents(amount),
    currency:           currency,
    description:        charge_description,
    refund_mispayments: true,
    email:              user.email,
    metadata:           charge_metadata
},
merchant_stripe_access_token
)
  

{" ID":" btcrcv_17MHRCDtBWPHkYdT2Cte9Oay""对象":" bitcoin_receiver""有源":假"量":2845," amount_received":0," bitcoin_amount":28450000," bitcoin_amount_received":0," bitcoin_uri& #34;:"比特币:test_3Bb3YdEqU6Xmqb141YleVZ2BqhYk9量= 0.28450000""创建":1451133982,"货币":" USD",& #34;客户":null,"说明":"收取发票#166B","电子邮件":" najeebidrees@gmail.com& #34;"填充":假," inbound_address":" test_3Bb3YdEqU6Xmqb141YleVZ2BqhYk9"" livemode":假,"元数据&# 34;:{"名字":" Najeeb","姓氏":" Idrees","电子邮件" :" najeebidrees@gmail.com"}"支付":空," refund_address":空,"记录" {&#34 ;对象":"列表""数据":[]," has_more":假," TOTAL_COUNT":0,& #34; URL":" / V1 / bitcoi N /接收器/ btcrcv_17MHRCDtBWPHkYdT2Cte9Oay /交易"}" uncaptured_funds":假," used_for_payment":假}"

成功填写后。

stripe_charge = Stripe::Charge.create(
{
    amount:               dollar_to_cents(amount),
    currency:             currency,
    source:               stripe_bitcoin_receiver.id,
    description:          charge_description,
    application_fee:      dollar_to_cents(application_fee),
    capture:              is_captured,
    statement_descriptor: statement_descriptor,
    metadata:             charge_metadata
},
merchant_stripe_access_token
)

收到此错误。

Stripe :: InvalidRequestError :(状态404)没有这样的比特币接收器:btcrcv_17MHRCDtBWPHkYdT2Cte9Oay

0 个答案:

没有答案