【发布时间】:2021-09-04 07:12:12
【问题描述】:
我有一个条带结帐功能,可将用户重定向到他们这边的默认条带结帐页面,付款完成后,它会重定向到我的网站页面。问题是我需要从付款中获取一些数据,并且我阅读了文档,但我无法弄清楚如何接收这些数据。
我知道我必须放入条带结帐创建代码,但我需要某种函数来接收我传递的数据。
const stripe = await this.stripePromise;
const { error } = await stripe.redirectToCheckout({
mode: 'subscription',
lineItems: [{ price: this.priceId, quantity: this.quantity }],
clientReferenceId: this.userEmail,
billingAddressCollection: this.userAdress,
successUrl: `page`,
cancelUrl: `page`,
});
我正在传递 clientReferenceId 和 billingAddressCollection,但是如何在成功页面上接收呢?
我需要一些条带功能吗?
【问题讨论】:
标签: javascript angular stripe-payments