条纹说 'Payment not completed' 条纹连接 php
Stripe saying 'Payment not completed' Stripe connect php
使用此代码向 Stripe 上的关联账户转账时
// // Create a PaymentIntent:
$method = \Stripe\PaymentMethod::create([
'type' => 'card',
'card' => [
'number' => '4242424242424242',
'exp_month' => 12,
'exp_year' => 2020,
'cvc' => '314',
],
]);
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => $AMOUNT1,
'currency' => 'nzd',
'payment_method_types' => ['card'],
'payment_method' => $method->id,
'customer' => CUSTOMER_ID,
'transfer_group' => '{ORDER'.$_SESSION['order_id'].'}',
]);
// Create a Transfer to a connected account (later):
$transfer = \Stripe\Transfer::create([
'amount' => $AMOUNT2,
'currency' => 'nzd',
'destination' => $ACC_ID,
'transfer_group' => '{ORDER'.$_SESSION['order_id'].'}',
]);
付款存储在连接帐户的仪表板上并显示已完成,但当它存储在我的付款 选项卡上时显示付款未完成且买家尚未完成付款
Prev1
Prev2
您需要通过在创建时提供 confirm=true
或调用 /confirm
.
来确认付款意向
您正在创建从您的帐户到关联帐户的转帐,该转帐成功,并且您从未完成过付款。
使用此代码向 Stripe 上的关联账户转账时
// // Create a PaymentIntent:
$method = \Stripe\PaymentMethod::create([
'type' => 'card',
'card' => [
'number' => '4242424242424242',
'exp_month' => 12,
'exp_year' => 2020,
'cvc' => '314',
],
]);
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => $AMOUNT1,
'currency' => 'nzd',
'payment_method_types' => ['card'],
'payment_method' => $method->id,
'customer' => CUSTOMER_ID,
'transfer_group' => '{ORDER'.$_SESSION['order_id'].'}',
]);
// Create a Transfer to a connected account (later):
$transfer = \Stripe\Transfer::create([
'amount' => $AMOUNT2,
'currency' => 'nzd',
'destination' => $ACC_ID,
'transfer_group' => '{ORDER'.$_SESSION['order_id'].'}',
]);
付款存储在连接帐户的仪表板上并显示已完成,但当它存储在我的付款 选项卡上时显示付款未完成且买家尚未完成付款
Prev1 Prev2
您需要通过在创建时提供 confirm=true
或调用 /confirm
.
您正在创建从您的帐户到关联帐户的转帐,该转帐成功,并且您从未完成过付款。