#tomfree
1 messages · Page 1 of 1 (latest)
Hi,
You use case looks quiet particular, let me try to understand it and help.
That leads to the problem that e.g. my price is setup as 0.0175 EUR per unit. But the customer comes with a revenue for 10 GBP
Why not creating for each customer, multiple subscriptions, one for each currency and create an usage record for each currency once happens, and at the end of the billing cycle they got multiple invoice for each used currency
option 3 and 4, are not possible in Stripe, AFAIK.
All pricing models are mentioned here:
https://stripe.com/docs/products-prices/pricing-models
This would mean to create a huge number of prices and subscriptions and make the data model kind of complicated. Also I dont necessarily know what cusotmer will come with what currencies, so hard to do I guess. Is option 1 possible?
2), I would say create a Subscription for each currency, which is my first though/message
or just created payments intents on the go?
how does stripe do it internally? Since stripe also charges %?
Option 1) you may refer to public currency exchange rates for that, there is no Stripe public API for that
This would mean to create a huge number of prices and subscriptions and make the data model kind of complicated. Also I dont necessarily know what cusotmer will come with what currencies, so hard to do I guess.
Agree
You can opt for that, but you won't use Subscription APIs, you need to manage the recurring by your own
Does this one fits to your need or not you think?
https://stripe.com/docs/products-prices/pricing-models#multicurrency
The same customer can make his revenu in multiple-currencies ?
am checking. Will come back in a few min i guess
i see i can configure those options for metered billing. How do I tell the usage record i create in which currency it is so the right currency is applied of the usagePrice?
Hi there 👋 I'm jumping in as my teammate needed to step away.
It sounds like what you're trying to model may be a good fit for Stripe Connect. Connect allows you to create Connected Accounts (which are Stripe accounts) that can conduct payments, and then you as the Platform Account can retain an application fee from your Connected Account's transactions.
Some common examples of where we see it being used is for marketplaces, where each seller is a Connected Account, or ride-hailing services where each driver has a Connected Account.
But please let me know if it seems I've misunderstood what you're trying to accomplish.
hmm. not really I guess. since the payent of the customer goes via his system. I just calculate price for him and do a piece of fulfillment.
So I guess my best option is to create payment intents each time instead of using usageBasePricing. IUs there a way to tell stripe at creation of paymentintent to always use the default payment method of the customer or do i need to retrieve aht one first myself?
or beter yet leave that open and have stripe apply default payment method when creating the bill or would a single paymentintent be billed directly?
or alternatively going back to the suggestion of your colleague how can i tell the usagerecord which currency of a price to apply?
No, you must explicitly provide the Payment Method that is to be used for a Payment Intent.
I'm not sure what you're trying to ask here, could you try rephrasing the question?
i want to have the charge for the usage be on the regular bill and deduct it from customer at end of billcycle using his current default payment method. Meanwhile i geuss paymentintent is the wrong way to go but i need to create an invoiceitem?
It sounds to me like you want to use a Subscription for that. They are designed to automatically process charges on a recurring basis.
https://stripe.com/docs/billing/subscriptions/overview
Unless you're saying you want your code to trigger those payments, in which case you would likely work with Payment Intents or Invoices directly.
well i would love a subscription and will use that for the fixed price per period component of my pricing modell. However for the usage /revenue sharing price I dont seem to be able to use stripe (As discussed above) and thus need to create thos invoiceItems myself, right?
If our Subscriptions won't work for the flow that you're trying to model and you still want to use our Invoice functionalities, then yes you will need to create the Invoice and Invoice Items yourself.
ok will see. thanks
Any time!
aopther quesiton: on https://discord.com/channels/841573134531821608/1068485265024352337 i pointed out a problem with a solution in the docs and wanted to hear alternatives but the thread was just closed. Can you reopen it?
We can continue here, what is your question/concern?
great. The issues is that when a customer initially subscribes to my product and i wanna setup subscription and default payment method I want the customer to click on the product he wants and then show him the details and allow him to enter payments details and on click he should have a subscription.
The problem ist that it seems all solutions for that have quite drawback.s
e.g. initially i opted for solution 2 and that creates a subscribtion with open paymentmethod but gives a cliensecret with which elements picks ups the payment data nd then sets up everything. issue there is however that when creation the subscroption but not having the payment detaisl already an invboice is create even though there is no contract yet
do you know what i mean?
meanwhile i am testing the other thing and have some issues there it appears i some bigger there with creating invoice items
Yes, that is the current flow for Subscriptions when using our Payment Element.
so lets get back to that one for now
it seems i cannot add items in a different currency to the bill of subscription that comes in a different curreny
thus i tried to take out the subscrioption from the stripe.invoiceItems.create call
Correct
however now for that one i dont see an invoice in the account for the charge
invoice item is ii_1MUsxgJgnOZBUP8a603BUrPS
ok i see this one is pending
when would it be invoiced?
do i need to trigger it? since it isn't on the subscription bill?
or alternatively coming back to the solution your colleague suggested. creating a useBasedPrice with multiple currencies. How can i tell a usagerecord which currency of the price it applies to?
or is that sth the customer select at subscription?
When the Invoice is finalized and payment is attempted.
Depends on whether you're using auto-advance.
You can't
Not sure what you mean by this
I would strongly recommend you look at using Connect. It would allow you to onboard your customers as Connected Accounts, allowing them to operate and settle in whatever currency they like, while your Platform account receives funds in its desired currency.
well as said i dont handle the payments of the customer. he does that and as far as I understand stripe connect that is kind of its thing riht?
Sorry, I'm a little confused, you are handling payments though right? That's why you're asking about how to process payments? Am I completely misunderstanding what you're trying to accomplish?
Ok. See the customer uses our product to get a price quote and then get a part of fulfilment. He uses the price and has his own payment processing. We however use theoinformaton of the revenue to <inStripe> participate at that revenue + a fixed monthly fee</inStripe>
and what i indicated with the pseudo tags is what i wanna do in stripe.
the fixe part is easy to bill
the revenzue sharing however not
and strope connect to my understanding would be for a case where we doe the overall payment pricessing which we dont really do
and the revenue of the customer may come oin different currencies.... and we ant the some percentage of it ....
and im struggling hard to set that up in stripe somehow
how would you recommend i do that?
Okay, that does help make more sense. So it sounds like you want to use Stripe to accept payments from your customers. You won't be able to directly tie into the payments being made by your customers because you aren't involved in the processing of those payments. Instead you would collect Payment Method details from your customers, and then process payments for them based your pricing model.
Why does this require currency conversion work or multiple currencies?
because they do their business in different currencies and thus have their revenue in different currencies and since we want a part of that revenue there am I in the middule of currencies...
make sense?
Yup, so it sounds like you'll want to figure out how to handle that currency conversion first.
does stripe have any optiosn for that? i mean you must do conversions right?
Sure, but you must present in a single currency, we do not support multi-currency payments. So you will at least need to settle on a single currency. We won't tell you how to do that conversion because it is dependent on how your business wants to handle those conversions. For instance, whether you perform currency conversion based on exchange rates at the time your customer processed a payment, or will you instead be converting currencies based on what the exchange rate is at the time you perform the conversion seems like a decision that would need to be made.
is there an api to get a currency conversion rate at (now or even better a specified timestamp)?
Not from Stripe as we don't set exchange rates. We describe here the approach we use for determining the exchange rate that we will use:
https://stripe.com/docs/currencies/conversions#:~:text=When converting currencies on a payment or transfer%2C Stripe applies the daily mid-market rate provided by our service providers and takes an additional fee
There is also a page linked there where you can see our current estimate of an exchange rate, but this is not accessible via the API and does not show historic rates.