我无法在Stripe中收取49.99美元。我正在尝试以下链接,但都没有奏效:
Stripe Checkout价格错误 - 无效整数
Stripe Rails:无效整数:1.06
我希望按原价收费,而不想四舍五入支付金额。
stripe.charges.create({
// Charge the customer in stripe
// amount: req.query.amount,
amount: 49.99,
currency: 'usd',
customer: req.customer
}).then(function(charge) {
// Use and save the charge info in our db
var successTransaction = {
stripeId: charge.customer,
transactionId: charge.id,
amount: charge.amount,
currency: charge.currency,
message: charge.outcome.seller_message,
paidStatus: charge.paid,
summary: charge
};