getlago / lago-go-client

Lago Go Client
MIT License
19 stars 20 forks source link

[BUG]: No option to select Payment methods for stripe provider when creating a customer #125

Open 42bhargav opened 11 months ago

42bhargav commented 11 months ago

Describe the bug When creating a new customer by default "card" and "sepa" are added as payment methods for stripe payment provider. Which causes an issue for people outside europe.

To Reproduce

  1. Create a new customer using Create function.
  2. When customer subscribes to new plan, a new invoice is generated and gets fails due to non support of "sepa" in other than europe countries

Expected behavior Successful creation of invoice. Screenshots

image

{ "webhook_type": "customer.payment_provider_error", "object_type": "payment_provider_customer_error", "payment_provider_customer_error": { "lago_customer_id": "xyz", "external_customer_id": "xyz", "payment_provider": "stripe", "provider_error": { "message": "The payment method type provided: sepa_debit is invalid. Please ensure the provided type is activated in your dashboard (https://dashboard.stripe.com/account/payments/settings) and your account is enabled for any preview features that you are trying to use. See https://stripe.com/docs/payments/payment-methods/integration-options for supported payment method, currency, and country combinations.", "error_code": null } } }

julienbourdeau commented 1 month ago

Hi @42bhargav Do you still have this issue? From what I understand, I don't think it's related to the Go client.