小编Jam*_*son的帖子

如何在订阅费用中填充Stripe的说明字段?

我可以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,
);
Run Code Online (Sandbox Code Playgroud)

但是,当我创建客户并将客户分配给订阅计划时,我无法看到如何填写每个结算周期的费用说明.

# 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
); …
Run Code Online (Sandbox Code Playgroud)

perl stripe-payments

7
推荐指数
1
解决办法
2691
查看次数

标签 统计

perl ×1

stripe-payments ×1