条纹分期付款,每期分期付款

时间:2018-11-21 04:11:19

标签: wordpress

我正在使用Stripe插件在wordpress中付款,

以下是我的代码:

创建客户:

$ customer = \ Stripe \ Customer :: create(     数组(       'card'=>“ strip tokken”,       '电子邮件'=> strip_tags(trim($ customer_email)),       “说明” =>“测试”     ) );

首次安装:300 分期付款百分比:4%

创建费用:
$ charge = \ Stripe \ Charge :: create(     数组(         “金额” => 12 * 100,         “ currency” =>“ usd”,         “ customer” =>'customer_id',         “ description” =>'description',         “ transfer_group” =>'stripeToken',         “元数据” => [“ order_id” =>'order_id',“ site_url” =>'url',“ customer_name” =>'user_firstname',“ customer_email” =>'user_email']     ) );

每期分期付款都会添加到佣金中。

0 个答案:

没有答案