我可以使用以下代码为一次性费用填充
我希望能够在每个计费周期发生的费用中添加描述。
API似乎没有提供这样的功能,但是可以通过strie仪表板编辑该字段。
Business::Stripe
的描述字段:use Business::Stripe; # Version 0.4
# Create Customer
my $customer = $stripe->api('post', 'customers',
card => $stripeToken,
description => $username,
);
# Charge
my $charge = $stripe->api('post', 'charges',
customer => $customer,
currency => $currency,
description => 'my description here no probs',
amount => $amount,
);
但是当我创建一个客户并将其分配给订阅计划时,我无法看到如何填写每个计费周期的费用描述。
# Create Customer and subscribe to a plan
my $customer = $stripe->api('post', 'customers',
card => $stripeToken,
description => 'description here is for the customer not the monthly charge',
plan => $plan
);
我希望能够在每个计费周期发生的费用中添加描述。
API似乎没有提供这样的功能,但是可以通过strie仪表板编辑该字段。
\Stripe\Subscription::create()
不支持任何description
参数。 - Fabien Snauwaert