【问题标题】:Stripe saying 'Payment not completed' Stripe connect phpStripe 说“付款未完成” Stripe connect php
【发布时间】:2020-09-18 14:00:07
【问题描述】:

当使用此代码将资金转移到 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

【问题讨论】:

    标签: php stripe-payments payment


    【解决方案1】:

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

    您正在创建从您的帐户到已连接帐户的转帐,该转帐成功,以及您从未完成的付款。

    【讨论】:

      猜你喜欢
      • 2017-04-27
      • 2019-04-05
      • 2019-09-13
      • 1970-01-01
      • 2019-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-11
      相关资源
      最近更新 更多