因此,我正在尝试使用条纹、React和Nodejs进行测试付款。在前端,我使用createPaymentMethod()并发送一个post请求,其中包含与产品相关的有效用户信息、产品数量、用户和地址信息。在后端,我检索这些信息,并在用户尚未创建时使用stripe.customers.create()
const customerPurchase = await stripe.customers.createpayment_method: payment_method_id //response from pa