📜  在条带 node.js 中创建客户 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:53.889000             🧑  作者: Mango

代码示例2
var stripe = require('stripe')('sk_test_FceQdct2QZpFfQZC4Wx9hGeo00ghaTeqAc');

stripe.subscriptions.create(
  {
    customer: 'cus_HKZRMeUnGPOb66',
    items: [{price: 'gold'}],
  },
  function(err, subscription) {
    // asynchronously called
  }
);