#ashtray-wasp_api

1 messages ยท Page 1 of 1 (latest)

rose forgeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1333454170241503303

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

hushed oreBOT
ember hedge
#

Hi there ๐Ÿ‘‹ I believe setting on_behalf_of there changes the list of payment method types that are supported to a list associated with the Connected Account, but I'm a little unsure exactly which set it pulls from. Whether it pulls from the payment method settings for your Connected Accounts:
https://dashboard.stripe.com/test/settings/payment_methods/connected_accounts
or if it uses the Subscription settings from the Connected Account.

If you access the dashboard page above, do the payment methods enabled there match what you see offered in the customer portal?

slow sparrow
#

Accessed the dashboard page. Google Pay is Blocked, and it is still available in the Billing session, SEPA Debit is On, and it's not available in the Billing session

ember hedge
#

Taking a closer look.

#

Apologies for the delay. I'm seeing something odd in my test account when trying to take a closer look at the payment method settings for my customer portal.

It feels like something may be off here.

ember hedge
#

I'm still trying to get to the bottom of the weird settings behavior I'm seeing, but I think that's something separate I don't want to stop that from me getting you an answer.

When you use on_behalf_of, the Customer Portal uses the portal settings from your Connected Accounts. Since they're Express Connected Accounts, I'm pretty sure neither the Connected Account owner nor you have access to those settings. This is a rough edge that our team is hoping to improve in the future.

slow sparrow
#

Is "portal settings" payment method set separate from the "Connect" payment method settigs? That is, when I block Google Pay for connected accounts, can they still have it in their "portal settings" enabled?

ember hedge
#

Yes, the Payment Methods set for the Customer Portal are separate (this is what I'm trying to push on more when I get off shift here, because right now I'm not seeing a way to change the payment method settings for my customer portal). They're on this page:
https://dashboard.stripe.com/test/settings/billing/portal
and they can be different for each Stripe account

slow sparrow
#

Hmm, okay, I see. Thanks for your help!

rose forgeBOT
ember hedge
#

@slow sparrow I did a bit more poking on what payment methods are used for this. I'm pretty sure we're using the default Payment Method Configuration from your Connected Account, which I think you are able to update.

Can you call this endpoint for your Connected Account:
https://docs.stripe.com/api/payment_method_configurations/list
https://docs.stripe.com/api/connected-accounts
Find the result where is_default is set to true:
https://docs.stripe.com/api/payment_method_configurations/object#payment_method_configuration_object-is_default
And then try to update that PMC with your desired payment methods:
https://docs.stripe.com/api/payment_method_configurations/update

slow sparrow
#

Tried this, and somethig still looks off as I have

"google_pay": {
  "available": false,
  "display_preference": {
    "overridable": null,
    "preference": "off",
    "value": "off",
  },
},

And I still see google pay

ember hedge
#

Any further details that you can share? Like the ID of the PMC you're editing, or the ID of the new portal session you created to test?

slow sparrow
#

PMC ID: pmc_1Qlu3hFQQbeMvTycXcwVBY6a
Portal session ID: bps_1QlvI7F9R6Nkg8poPZdb70Np

ember hedge
#

Based on what I'm seeing, the PMC you shared belongs to a different Connected Account than the one provided to the on_behalf_of parameter for that portal session. Can you double check you're using the same Connected Account for both?

slow sparrow
#

Apologies, here's the correct billing portal session ID: bps_1QlvCSF9R6Nkg8poxRsAhJJZ

ember hedge
#

Hm, yesh I'm seeing the same. If you adjust that PMC so it includes SEPA, does that at least get SEPA to appear as an option?

slow sparrow
#

Correct me if I'm wrong, but it seems that I cannot set SEPA to "available": true through the API

ember hedge
#

Correct. You would pass a value for sepa_debit.display_preference.preference
https://docs.stripe.com/api/payment_method_configurations/update#update_payment_method_configurations-sepa_debit

If available remains false after that update, you should double check you requested the necessary sepa_debit_payments Capability for your Connected Account.

rose forgeBOT
slow sparrow
#

Did that. Still not seeing SEPA Debit

Sorry for the delay, was commuting home

frigid scarab
#

Hello, catching up. So this was a customer portal session on the connected account, but it didn't respect that account's SEPA settings?

slow sparrow
#

Right, it didn't respect the connected account's SEPA settings, and what's more it shows Google Pay even though it's turned off

ember hedge
#

Can you help us understand what click-stream you're using once in the Customer Portal to add a new payment method? We're thinking this doesn't work as expected and needs to be reported for further investigation, but want to make sure we're looking at the same thing you are with what we're looking at internally.

slow sparrow
#

First I'm creating a billing portal configuration (for example bpc_1QlvI7F9R6Nkg8poxXmgOtjB) which has only payment method capability enabled. Then I create a billing portal via API and redirect to the URL returned

frigid scarab
#

Thanks for the info, trying to reproduce this.

rose forgeBOT
ember hedge
#

Okay, I think I know where the settings are coming from now.

I'm going to go back to look at the last session ID that you shared to confirm everything lines up the way I'm expecting, but if there's any chance you can share a recent one (in case settings have changed since the previous one was generated) that'd be appreciated.

slow sparrow
#

Herre's the latest session I've generated bps_1QlyRdF9R6Nkg8poFNd8vRkp

ember hedge
#

Alright, looks like everything lines up.

So what we're seeing currently, is that if you use on_behalf_of when creating the portal session then the PMC that gets used is the default (not the Billing Payments one) PMC for the Platform account.

For your testing, that seems to be this one:
https://dashboard.stripe.com/test/settings/payment_methods/pmc_1MPKMbF9R6Nkg8poIOO6jejL
which aligns with what we're seeing in the portal where Google Pay is enabled but SEPA is not.

slow sparrow
#

Ohh, interesting. So I have to pass the connect_account option when creating a PMC, right?

ember hedge
#

Sorry, I don't think I understand what you're asking. You won't create a Payment Method Configuration (PMC), the existing default one for your Platform account is the one that will be used. If you want to change the payment methods offered in the Customer Portal, when using the on_behalf_of parameter, then you'll want to make adjustments to the specific PMC that I listed above.

slow sparrow
#

I confused BPC with PMC, sorry.

So I understand there's no way to control that per connected account. Is this behavior expected, or is it a bug?

ember hedge
#

Correct, there is currently no way to offer different payment methods based on the Connected Account that you pass to on_behalf_of.

I'm going to raise this to our teams for further review. While I don't think they'd call it a bug right now, it's pretty inconsistent with how our other flows behave. I wouldn't anticipate quick changes here though, and would recommend integrating this based on how it behaves currently.

slow sparrow
#

I understand.

Thank you so much for your determination to figure this out, I really appreciate it!