如何将 Spreedly 数据迁移到条带化?

How to migrate Spreedly data to stripe?

我尝试将信用卡和客户等数据快速导出到条带化,但我不确定我需要使用哪些数据来创建条带化令牌。我在 rails 上使用 ruby,这是从 spreedly api

检索数据的示例

有人知道我需要使用什么数据来生成条带令牌吗?

{  
  customer=>{  
    :email=> "example@gmail.com",
    :token=> "SsEFMRoEInyZvZasdfasdJHG78",
    :credit_card=>{  
      :address_city=> "Distrito Federal",
      :address_line1=> "Colima 436 int 104",
      :address_state=> "DIF",
      :address_zip=> "06700",
      :country=> "MX",
      :cvc_check=> "",
      :exp_month=> "11",
      :exp_year=> "2019",
      :fingerprint=> "d80c788asdfasdJHG780511a2f67dc2F83",
      :last4=> "1111",
      :name=> "User",
      :tokenization_method=> "S780511a2f67dc2F83tsic788as"
      }
   }
}

如果您想将所有卡片从 Spreedly 导出到 Stripe,最好的解决方案可能是直接与他们联系。他们有一个团队可以将卡的详细信息导出到 Stripe 等其他处理器,而您无需编写代码或处理敏感数据。然后 Stripe 将能够导入您的 Stripe 帐户中的所有客户和卡,他们在此处记录:https://stripe.com/docs/security/data-migrations/imports

另一种方法是使用 Spreedly 的 API。这是他们在此处记录的内容:https://docs.spreedly.com/guides/exporting/#performing-the-export