#coinbeastcrypto
1 messages ยท Page 1 of 1 (latest)
How are they sending that payment now? Are they a connect platform that sends their connect account a Transfer? (https://stripe.com/docs/api/transfers) Or are they using a different mechanism?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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
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?
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
correct
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
we generate the links via API. I believe we are technically leveraging checkout then
Not exactly. You can create Payment Links via the APi too
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
Via the API or the Dashboard?
via the API
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
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.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
๐ just catching up since my teammate needed to run!
no problem @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
Yes, you could just create a PaymentLink and specify the list of payment methods you want to allow in payment_method_types: https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_method_types
if you don't pass this, every payment method that your account has enabled in the Dashboard will be presented to the customer (if appropriate for the currency, etc)
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
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
got it
and last confirmation which payment method types corresponds to ACH, is that just:
us_bank_account
yep, that's it!