#pawel - Payment Methods

1 messages ยท Page 1 of 1 (latest)

hollow nest
#

Hi ๐Ÿ‘‹ I created this thread so we could converse here.

#

It's just really busy right now so I'm jumping around a bit

rancid hearth
#

yay!

#

it would be great if you could give me a hint on that one

#

its blocking me

dusk wind
#

Hello ๐Ÿ‘‹
I can take a look
give me a moment to catch up on the details here ๐Ÿ™‚

rancid hearth
#

thank you !

dusk wind
#

do you have a test URL I can take a look at?

rancid hearth
#

not really

#

we can speak in private conversation if you have access to stripe accounts

dusk wind
#

Not a problem! taking a look now to see if there's anything

rancid hearth
#

and i can give you some account details so that you could verify that from the other side

#

big shortcut is: 1. I've setup payment methos on the account 2. Im creating intent with automatic_payment_methods enabled 3. when rendering payment elements with the secret from payment intent, these methods dont appear

#

i just get card payment

#

and the intent seems to be created with the proper settings

#

Stripe::PaymentIntent:0x3f80684c9f78 id=pi_3KbUbIAN1WpGl5pp1H8MJ93s> JSON: { "id": "pi_3KbUbIAN1WpGl5pp1H8MJ93s", "object": "payment_intent", "allowed_source_types": [ "card" ], "amount": 4632, "amount_capturable": 0, "amount_received": 0, "application": "ca_5AA53QHHbTDb5A1lInwtCjnTFVyqkY1S", "application_fee_amount": 139, "automatic_payment_methods": {"enabled":true}, (....)

#

it has automatic_payment_methods enabled but for some reason just the card type

#

and on the dashboard i have przelewy24 enabled which should appear

#

and it appears in the dasboard preview

#

but not when using the intent

dusk wind
#

AFAIK It should show up. Give me a moment to reproduce this on my end.

rancid hearth
#

Yeah it should

dusk wind
#

quick question, Have you enabled these methods on the connected account?

rancid hearth
#

yes

dusk wind
#

ah okay I'll keep looking ๐Ÿ˜…
Most probably we're missing something very tiny in the code

rancid hearth
#

do you think that used API version might have something to do with it ?

#

or not really ?

dusk wind
#

5.45.0 correct?

rancid hearth
#

this is gem version yes

dusk wind
#

ah yeah sorry 2015-10-16

rancid hearth
#

yes

#

cause, i dont see any relation with the API version

dusk wind
#

yeah I'm not seeing anything in the changelog as well

rancid hearth
#

but you tell me ๐Ÿ˜‰

#

it should just work

#

just as in the preview

#

were you able to access my account ?

dusk wind
#

Preview is stripe checkout though

#

I didn't need to in this case
Seems like it isn't working for me either
Let me reach out my colleagues to see if this is intended or maybe a potential bug

rancid hearth
#

okay

dusk wind
#

Noticed something interesting in the console where it says

The following payment method types are not activated:

  • ideal

They will be displayed in test mode, but hidden in live mode. Please activate the payment method types in your dashboard (https://dashboard.stripe.com/settings/payment_methods) and ensure your account is enabled for any preview features that you are trying to use.

Are you seeing the same in your console as well?

rancid hearth
#

nope

#

don't see anything like that

dusk wind
#

ah okay! Maybe because I have these methods turned off in livemode that's why

rancid hearth
#

yes

#

i tunred them on in both live and test

dusk wind
#

gotcha! thanks for confirming

rancid hearth
#

it does not work for you too ?

dusk wind
#

yup doesn't work for me either
It has something to do with the PaymentRequest object only listing 'card' as a payment_method_type I'm not sure why that's happening

rancid hearth
#

could you change your API version to the newest and see if that solves the issue ?

#

on your side ?

dusk wind
#

I am running the newest version (I think)

rancid hearth
#

not the gem

#

but the API

dusk wind
#

yup the API too

#

2020-08-27

rancid hearth
#

note that when you create payment intent with the payment_method_types: ['card', 'p24']

#

the elements will show przelewy24 option

dusk wind
#

yup seeeing the same behavior on my end

rancid hearth
#

but the key is that it should do it show it automatically when setting automatic_payment_methods: { enabled: true, }

#

and having them enabled on the dashboard

#

right?

dusk wind
#

yup
On the platform account as well as on the connected account

rancid hearth
#

yes

#

i have it enabled in both places

#

so it should work with stripe connect too right ?

dusk wind
#

yeah that is correct it should

rancid hearth
#

that sounds like a bug on stripe

#

is there any way we can make that work ?

dusk wind
#

we're still diagnosing automatic_payment_methods parameter
You can force it to show these methods by setting them using payment_method_types: ['card','ideal', 'p24']

ideal only works for eur currency

#

just a heads up^^

rancid hearth
#

yeah

#

let me know what we are missing

proud hill
#

hey there, sorry but could you please write in to support with the summary of the issue here and mention you were talking to us here in Discord (hanzo & synthrider)

#

We're going to continue to investigate/reproduce but it will take some time

#
rancid hearth
#

@proud hill @dusk wind sure, will do that

proud hill
#

TY!

dusk wind
#

Hey @rancid hearth, I have an update on this (not sure if you're around.)

Currently, automatic_payment_methods used with direct charges defaults to using card as the only available payment method. That's the reason why ideal and Przelewy24 doesn't show up.

So, the alternative currently is to use payment_method_types to add ideal and p24 support.

Thank you for your patience while we worked through this.

sturdy wave
#

@rancid hearth ๐Ÿ‘‹ Can you share your new question here? Happy to help!

rancid hearth
#

@sturdy wave yay! thanks

#

ill repeat @dusk wind @proud hill Thank you very much for help yesterday โค๏ธ I understood the answer. The one last question is: Shouldn't the automatic_payment_methods work with direct charges as well thought? Is making it work taken into consideration or we are sentenced on using payment_method_types manually forever ? ๐Ÿ™‚

sturdy wave
#

Got it, just catching up on a discussion between colleagues regarding this. Hold please!

#

Ok, yep. This is currently working as expected. automatic_payment_methods won't work with standard connected accounts right now. However this is something we are working on

rancid hearth
#

@sturdy wave Do you have any timeframes for that?

sturdy wave
#

I believe there's a beta currently, checking

#

What's your platform account ID?

rancid hearth
#

@sturdy wave where can i find it ?

sturdy wave
#

I can forward your beta interest to the team if you'd like

rancid hearth
#

acct_14zpkeJVX7vLdQVK

#

acct_1KbT5uAN1WpGl5pp

#

i tested on subaccount created for test

sturdy wave
#

Which is the platform?

rancid hearth
#

first is platform one second is test one

sturdy wave
#

Ok, I'll drop a note to the team!

rancid hearth
#

@sturdy wave i need to proceed with the integration now anyway, so ill implement the version with the manually specified payment_method_types. But if it will work without later, it would be surely an improvement as we could move the responsability of enabled payment methods to the connected stripe account. Instead of dealing with it internally on our side

sturdy wave
#

Yep, that's what this work will enable

#

I'll express your interest to the team! I'm not sure what the beta status is currently

rancid hearth
#

okay, thank you all for help! You are the best! ๐Ÿฅณ

sturdy wave
#

Np!

light harnessBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact

sturdy wave
#

@rancid hearth Hey! Not sure if you'll even receive this message, but your platform account should now have access to the automatic payment methods parameter for direct charges!