我正在使用square_connect紅寶石來退款。在square_connect上創建退款Ruby sdk給出內部服務器錯誤
body =
#<SquareConnect::CreateRefundRequest
@amount_money=#<SquareConnect::Money @amount=200, @currency="USD">,
@idempotency_key="be70cc12-28dd-4168-96ea-6eb78f299207",
@tender_id="asdkasdkakdakdakda">
所有其他參數與預期相同。我也改變了Tender鍵。
result = api_instance.create_refund(authorization, location_id, transaction_id, body)
這給了我內部服務器錯誤。
ETHON: performed EASY effective_url=https://connect.squareup.com/v2/locations/BP6GXQNEANA9B/transactions/b2fd4689-af1b-40a4-b706-aafd592e1111/refund response_code=500 return_code=ok total_time=1.883598
SquareConnect::ApiError: Internal Server Error - {"errors":[{"category":"API_ERROR","code":"INTERNAL_SERVER_ERROR","detail":"An internal error has occurred, and the API was unable to service your request."}]}