0
我發送POST捕獲多個支付網關時顯示:Shopify交易API - 錯誤的網關名稱更新交易
禮品卡(定製支付網關)和信用卡(條)。 我的條紋捕捉沒有問題。無論我嘗試捕獲交易的順序如何,禮品卡始終將付款網關標記爲捕獲上的條帶。
這是我的交易後
$this->client->post("admin/orders/{$shopifyTransaction->getOrderId()}/transactions.json", [], $serializedModel);
這是成功的更新狀態,Shopify上拍攝的。
我的交易看起來是這樣的:
'transaction' =>
array (
'id' => 123456789,
'order_id' => 123456789,
'amount' => 4.23,
'kind' => 'capture',
'gateway' => 'Gift Card',
),
)
我的迴應是這樣的:
'transaction' =>
array (
'id' => 567890989,
'order_id' => 567890989,
'amount' => '4.23',
'kind' => 'capture',
'gateway' => 'Stripe',
'status' => 'success',
'message' => 'Marked the Stripe payment as received',
'created_at' => '2017-01-11T21:59:22-05:00',
'test' => false,
'authorization' => NULL,
'currency' => 'CAD',
'location_id' => NULL,
'user_id' => NULL,
'parent_id' => 3124665367,
'device_id' => NULL,
'receipt' =>
array (
),
'error_code' => NULL,
'source_name' => '1313490',
)
我缺少的東西?