【发布时间】:2014-10-06 22:50:15
【问题描述】:
我可以使用以下代码填充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 仪表板进行编辑。
【问题讨论】:
标签: perl stripe-payments