我在Node js中有以下代码:
var stripe = require("stripe")("sk_test_bW0EUBWHWjWRdNzwxjIqaz7C");
const token = request.body.stripeToken; // Using Express
const charge = stripe.charges.create({
amount: 999,
currency: 'usd',
description: 'Example charge',
source: token,
})
如何在角度4中执行此操作?