Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Payment detail : Missing approved key for Sofort #237

Open
benschumi opened this issue Feb 26, 2024 · 3 comments
Open

Get Payment detail : Missing approved key for Sofort #237

benschumi opened this issue Feb 26, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@benschumi
Copy link

benschumi commented Feb 26, 2024

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

@armando-rodriguez-cko armando-rodriguez-cko self-assigned this Feb 26, 2024
@armando-rodriguez-cko armando-rodriguez-cko added the question Further information is requested label Feb 26, 2024
@armando-rodriguez-cko
Copy link
Contributor

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

@benschumi
Copy link
Author

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

@armando-rodriguez-cko
Copy link
Contributor

Hi @benschumi. This error was probably occurring in the API response, could you confirm that this behavior no longer occurs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants