条纹 - 将用户友好的描述添加到付款意图中



我正在尝试找出如何将用户友好说明添加到付款意图(例如订单号而不是... pi_xxxxxxxxxxxxx(

  $intent = StripePaymentIntent::create([
    'payment_method' => $json_obj->payment_method_id,
    'amount' => $json_obj->amount,
    'statement_descriptor' => $json_obj->desription,
    'receipt_email' => $json_obj->email,
    'description' => $json_obj->$description,
    'payment_method_types' => ["card"],
    'currency' => 'gbp',
    'confirmation_method' => 'manual',
    'confirm' => true,
  ]);

使用电荷API非常容易,有什么建议吗?提前THX

编码错误

'description' => $json_obj->$description,

应该是

'description' => $json_obj->description,

最新更新