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

The parameter payment_method_options[blik][code] is required. #1798

Open
Guihal opened this issue Dec 19, 2024 · 1 comment
Open

The parameter payment_method_options[blik][code] is required. #1798

Guihal opened this issue Dec 19, 2024 · 1 comment
Labels

Comments

@Guihal
Copy link

Guihal commented Dec 19, 2024

Describe the bug

I'm still trying to do the blik payment method in woocomerce. With js the payment is confirmed with the SAME BODY(without payment method) that I send to your api. Everything is done in test mode, the code is received correctly ('666666'), everything is done according to your documentation.

To Reproduce

Trying to confirm PaymentIntent

Expected behavior

That the payment will be confirmed. And stripe support doesn't answer anything about it.

Code snippets

$confirmed = $intent->confirm(
                $intent->id,
                [
                    'payment_method' => $this->payment_method->id,
                    'payment_method_options' => [
                        'blik' => [
                            'code' => $code,
                        ],
                    ]
                ]
            );

OS

linux

PHP version

8.1

Library version

last

API version

last

Additional context

Thank you for your response!

@Guihal Guihal added the bug label Dec 19, 2024
@xavdid-stripe
Copy link
Member

Hello! That looks correct, so it's hard to tell what's going wrong from the details you provided. I'd start by logging the $code right before that block to ensure it's defined as expected. If it is, can you supply:

  • the exact API version & PHP SDK version you're using
  • if possible, a request id that shows a failed request (and exactly what the server is receiving).

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants