我试图从关联帐户的客户那里收取费用,
我有这个错误NEW_EVENT_TAIL=`tail -1 new_events.txt`
EXISTING_EVENT_TAIL=`tail -1 new_events.txt`
if [ "$NEW_EVENT_TAIL" = "$EXISTING_EVENT_TAIL" ];
then
echo "in list"
else
echo "not in list"
fi
这是我的代码:
Cannot use stripe token more than once
我尝试使用$customer = \Stripe\Customer::create(array(
"email" => $customer_email,
"source" => $token,
),
array("stripe_account" => $stripe_connected_account)
);
$charge = \Stripe\Charge::create(array(
"amount" => $the_fix_fee_convert,
"currency" => "eur",
"source" => $token,
"description" => "Charge for subscription"
));
代替customer
:
source
但Stripe找不到$charge = \Stripe\Charge::create(array(
"amount" => $the_fix_fee_convert,
"currency" => "eur",
"customer" => $customer->id,
"description" => "Charge for subscription"
));
,因为它来自customer->id
我也试过这个:
$stripe_connected_account
虽然有效但收费是在已关联的帐户上转移,而不是在应用帐户上转帐。
对此有何想法?