#coinbeastcrypto

1 messages ยท Page 1 of 1 (latest)

cyan kettleBOT
queen arrow
gusty cypress
#

We are a bill pay platform that has a platform account with Stripe. This user is a connect user under our stripe platform account.

Our users create invoices in our app and we generate payment links via API (using the amount of those invoice), on behalf of our connect customers that their end users pay into

queen arrow
#

Ahhhh, okay. Perfect, thanks for the thorough explanation. In that case, they just need to add another Invoice Item to the Invoice to represent the fee. They can just calculate that up-front and add it to the Invoice before sending

gusty cypress
#

We have both Credit Cards and ACH Payments enabled as payment options. How do we calculate this up front if we don't know yet if a user will be paying via credit card or ACH?

queen arrow
#

You would need to create the Payment Method up-front before drafting the Invoice. What are you using to create Payment Methods now?

#

Oh wait, you said payment links

gusty cypress
#

correct

queen arrow
#

Unfortunately you would have to switch to something other than Payment Links for this to work. Checkout is a good next option, since it's pretty low-code

gusty cypress
#

we generate the links via API. I believe we are technically leveraging checkout then

queen arrow
#

Not exactly. You can create Payment Links via the APi too

gusty cypress
#

ok let me confirm which one we are using

#

Ok so confirming, when a user creates an invoice in our system we 1) create a product containing the amount and 2) we create a payment link with the destination and on_behalf_of parameter set to our connect customer

queen arrow
#

Via the API or the Dashboard?

gusty cypress
#

via the API

cyan kettleBOT
gusty cypress
#

and at the request of our client, if there is a quicker solution to turn off credit cards as an option for now since they bear a much higher fee, we would prioritize that first, then making this switch to passing on fees dynamically second

#

we just sent out a large batch of invoices yesterday so want to minimize fees for this round

queen arrow
#

Ahhhh, okay. You would still have to switch off of Payment Links in order to create the Payment Method ahead of time, which would tell you what fee to charge.

That being said, if you created a button the customer can click to select what Payment Method type they want to use, then you can just create a Payment Link with multiple line_items (https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-line_items) and make sure to pass in (https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_method_types). The first line item could be the actual price of the thing, then the second line item could be the fee you calculated ahead of time.

gusty cypress
#

I see, okay

#

let me confirm with my team if that solution will work

#

and to confirm, to disable "Cards" as a payment method on payment link, do we simply NOT pass card as a payment_method_type when generating the link?

#

And could we update previously generated links retroactively to remove the payment type?

elfin dagger
#

๐Ÿ‘‹ just catching up since my teammate needed to run!

gusty cypress
#

no problem @elfin dagger

elfin dagger
#

Okay, caught up! I think my teammate was focusing on the fact that your team wanted to create the PaymentMethod first, which isn't decoupled from the creation of a PaymentLink by default

gusty cypress
#

got it so if we leverage the update call

#

assuming we can update all of the payment links we generated yesterday and users that access the original links would only see the updated payment methods available for use?

#

we could update from cards and ach to just ach

#

and sorry one higher priority ask

#

--> Is it possible to actually just disable this payment method temporarily on the account level for this connected customer?

#

-->Trying to get to the quickest resolution

elfin dagger
#

It's not possible to disable card payments

#

But yes, you should be able to update the payment link to update the payment method types allowed

gusty cypress
#

got it

#

and last confirmation which payment method types corresponds to ACH, is that just:

us_bank_account

elfin dagger
#

yep, that's it!