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

[Bug]: Invalid or unsupported payment method when refunding via WooCommerce #58

Open
1 task done
JCZwier opened this issue Nov 21, 2024 · 4 comments
Open
1 task done
Assignees

Comments

@JCZwier
Copy link

JCZwier commented Nov 21, 2024

What is your BTCPay version?

I'm running BTCPay v1.13.7+83c948d12 (Altcoins)

How did you deploy BTCPay Server?

I'm running BTCPay Server on a Docker instance

What happened?

I get an error when I try to refund an order in WooCommerce that was paid using BTCPay. This only happens when I click 'Refund $... via BTCPay'. The error is below.

How did you encounter this bug?

  1. I enter the refund information in WooCommerce. 2. I click on 'Refund $... via BTCPay. 3. I get the error message that is pasted below.

Relevant log output

Exception creating pull payment: Error during POST to https://example.com/api/v1/stores/6BSKiz4zRqydQXtaYo1jj3MLDgLdqC3ZjtEhR5YqU5Bt/pull-payments. Got response (422): [{"path":"PaymentMethods[1]","message":"Invalid or unsupported payment method"}]

What browser do you use?

Firefox 132.0.1

Additional information

No response

Are you sure this is a bug report?

  • I confirm this is a bug report
@pavlenex pavlenex transferred this issue from btcpayserver/btcpayserver Nov 21, 2024
@pavlenex
Copy link

Which version of WooCommerce plugin are you using?
cc @ndeet

@JCZwier
Copy link
Author

JCZwier commented Nov 22, 2024

@pavlenex I'm using version 2.7.0.

@ndeet
Copy link
Collaborator

ndeet commented Nov 22, 2024

Hey @JCZwier tried to reproduce the error and found a different one but with BTCPay Server 2.0.

With BTCPay 1.13.x (which you seem to use) I could not reproduce your error. Your errors suggests that the payment methods passed to the pull payments endpoint is a nested array which is a bit weird. Can you give me more information about your setup so I can try to reproduce?

  • What PHP version do you use?
  • What settings do you have enabled on BTCPay Settings (on WooCommerce)
  • What BTCPay Server version are you running?
  • did you disable the original Payment method maybe? (in WooCommerce -> Settings -> Payments)?

Thank you.

@ndeet ndeet self-assigned this Nov 22, 2024
@JCZwier
Copy link
Author

JCZwier commented Nov 24, 2024

@ndeet To answer your questions:

  • On the WordPress server I'm using PHP version 8.1.18.
  • The only setting I have enabled is 'Protect order status'.
  • I'm running BTCPay Server v1.13.7+83c948d12 (Altcoins).
  • The order was initially paid with BTCPay, and this payment option is enabled.

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

No branches or pull requests

3 participants