条纹'付款未完成'Stripe connect php

问题描述 投票:0回答:1

使用此代码将资金转入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'].'}',
]);

付款存储在关联帐户的仪表板上,并表示已完成,但是当付款存储在我的Payments选项卡上时,它表示付款不完整,买方尚未完成付款。>

Prev1Prev2

[使用此代码将资金转移到Stripe上的关联帐户// // //创建PaymentIntent:$ method = \ Stripe \ PaymentMethod :: create(['type'=>'card','card'=> ['数字'=&...

php stripe-payments payment
1个回答
0
投票

您需要通过创建时提供confirm=true或致电/confirm来确认付款意向。

© www.soinside.com 2019 - 2024. All rights reserved.