【发布时间】:2015-11-06 19:14:31
【问题描述】:
据我了解,关于 Stripe 转账,您可以向信用卡/银行账户汇款,即使这些账户没有在 Stripe 注册。
按照他们的 API,我想出了以下代码来向信用卡汇款:
$amount = inputFilter($_POST['amount']);
$amount = $amount*100;
$destination = "card_6WWSXFfQsZEc66"; //Card data is a test card
#$customer = \Stripe\Customer::retrieve($userdata["stripe_id"]);
$transfer = \Stripe\Transfer::create(array(
"amount" => $amount,
"destination" => $destination,
"description" => "test payment"
));
$event_id = $tranfer->id;
$event = \Stripe\Event::retrieve($event_id);
die($event);
我从上面的 PHP 代码得到的响应是这样的:
卡 card_6WWSXFfQsZEc66 未附加到此 Stripe 帐户。 外部账户只能附加到独立的 Stripe 账户 通过仪表板。
我是不是误会了什么?您不应该能够将资金从您自己的 Stripe 帐户转移到独立的银行/信用卡吗?
【问题讨论】:
-
“只能通过仪表板附加外部账户”。那么...您是否在仪表板中附加了这张外部信用卡?
-
@MarcB 但是“附加”——在这种情况下是什么意思?
-
附加表示添加。您不能仅将卡添加为独立帐户的目标帐户。
标签: php stripe-payments