checkout-sdk-php icon indicating copy to clipboard operation
checkout-sdk-php copied to clipboard

Get Payment detail : Missing approved key for Sofort

Open benschumi opened this issue 4 months ago • 2 comments

Environment

  • Checkout SDK version: 3.0.18
  • Operating System and version: MacOs 14.2.1

Description

When I make a payment with Sofort in sandbox environment, the key "approved" is missing in the data returned, wich is causing an error in our app. With Ideal or Multibanco, the key is present. Last thursday, everything was working fine for Sofort.

Here the result for the payment 'pay_riis4xtdlhbehdfzfzstfloxui'

array:12 [▼
  "http_metadata" => HttpMetadata {#3855 ▼
    -reason_phrase: "OK"
    -status_code: 200
    -headers: array:5 [▶]
    -protocol: "1.1"
  }
  "id" => "pay_riis4xtdlhbehdfzfzstfloxui"
  "requested_on" => "2024-02-26T10:55:19.9492421Z"
  "source" => array:4 [▼
    "type" => "sofort"
    "iban" => "BE67234023456789"
    "bic" => "SFRTBE20XXX"
    "account_holder_name" => "Max Mustermann"
  ]
  "amount" => 6999
  "currency" => "EUR"
  "payment_type" => "Regular"
  "reference" => "275"
  "status" => "Pending"
  "customer" => array:4 [▶]
  "shipping" => array:4 [▶]
  "_links" => array:2 [▶]
]

In the documentation, the fields approved is tagged as 'required' in the response with code 200

https://api-reference.checkout.com/#operation/getPaymentDetails

Thanks for your help

benschumi avatar Feb 26 '24 11:02 benschumi

Hi @benschumi, thank you, I gonna to review your comments.

armando-rodriguez-cko avatar Feb 26 '24 11:02 armando-rodriguez-cko

I've typed a wrong version number of the sdk in my description, I've corrected it Version : 3.0.18

benschumi avatar Feb 26 '24 14:02 benschumi